
How do i print the above table data in two pages based on group types seperately? Can this be achieved with window.print and some css and javascript tweaks?
Any idea/suggestion are welcome.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
So, when the table switches from a group of “Teddy Bear” to “Baby Bear” you want this on a new page?
If so, then structure the table with separate
<thead>and<tbody>sections, like so:Notice that different groups are in different
<tbody>s.Then you can use CSS like:
And the groups will print on separate pages, plus in most browsers, the headers will be repeated.
Print or print preview this example at jsBin.