Print div content using jquery printElement

I am trying to print my content div using the printElement plugin. The div has a lot of text, so there is a scroll bar. The problem is that the plugin prints only that part of the text that is actually on the screen. How to print all the text?

EDIT:

I need a solution that will print this div with styles that are in external css.

+6
jquery printing
source share
3 answers
+3
source share

https://github.com/jasonday/printThis

Configurable with additional css files and other parameters.

+1
source share
<div class="printclass">Print</div> <div id="mydivid"> Your content goes here </div> </div> <script type="text/javascript"> $(function(){ $( ".printclass" ) .attr( "href", "javascript:void(0)") .click(function(){ // Print the DIV. $( "#mydivid" ).print(); // Cancel click event. return( false ); }); }); </script> 
0
source share

All Articles