html - How to seperate page for printing when users click on the check box by using CSS -


i've follwed http://davidwalsh.name/css-page-breaks , works!!

but want add additional function seperated new page if user check on check box.

here css code

input[type=checkbox]:checked  {                @media print {         .page-break { display: block; page-break-before: always; }             }             }  

and checkbox code

<input type="checkbox"> check me 

thanks !!

can't done css, have go java-script. togle class


Comments