2
我想打印一個div是目前可見的,但我的jQuery的不能正常工作jQuery的打印件問題
這裏是我使用的printElement plugin
$('.printDirections').click(function() {
$(this).parent().children().('div').is(':visible').printElement()
});
而我的HTML努力看起來像這樣
<div class="directionstext">
<img src="/images/opendays/print.gif" class="printDirections">
<div id="prop1" style="display: none;">
some text
</div>
<div id="prop2" style="display: none;">
some text
</div>
<div id="prop3" style="display: block;">
some text
</div>
</div>
任何想法我做錯了什麼?
謝謝你知道這將是簡單的事! – 2011-01-28 11:55:29