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