How to use JavaScript to print the contents on a div?
<p>I would like to use the print() function to print the contents of a <code>&lt;div class="pagecontent"&gt;&lt;/div&gt;</code></p>

<p>I know you can do something like <code>onClick="window.print()"</code> but this prints the entire window...I only want the contents of <code>.pagecontent</code> to be printed.</p>

<p>What's the easiest way I can go about doing this using JavaScript or jQuery? </p>
