jQuery print element problem
<p>I'm trying to print a div that is currently visible but my jQuery isn't working properly</p>

<p>Here's what I'm trying using the <a href="http://projects.erikzaadi.com/jQueryPlugins/jQuery.printElement/" rel="nofollow">printElement plugin</a></p>

<pre><code>$('.printDirections').click(function() {

    $(this).parent().children().('div').is(':visible').printElement()

});
</code></pre>

<p>And my HTML looks like this</p>

<pre><code>&lt;div class="directionstext"&gt;

    &lt;img src="/images/opendays/print.gif" class="printDirections"&gt;

    &lt;div id="prop1" style="display: none;"&gt;

        some text

    &lt;/div&gt;

    &lt;div id="prop2" style="display: none;"&gt;

        some text

    &lt;/div&gt;

    &lt;div id="prop3" style="display: block;"&gt;

        some text

    &lt;/div&gt;

&lt;/div&gt;
</code></pre>

<p>Any ideas what I'm doing wrong?</p>
