2
나는 현재 볼 수있는 사업부를 인쇄하기 위해 노력하고있어하지만 내 jQuery를 제대로 여기인쇄 요소 문제
작동하지 않습니다 내가 printElement plugin
$('.printDirections').click(function() {
$(this).parent().children().('div').is(':visible').printElement()
});
그리고 내 HTML을 사용하여 시도하고 무엇 jQuery를 이 모양은
<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>
내가 뭘 잘못하고있어?
감사합니다. –
jQuery에서'is()'메소드는 부울을 반환합니다. 일단 호출하면 메서드 체인이 끊어집니다. http://docs.jquery.com/Is – Jake