Hello,
I am retrieving data from the database and displaying it inside HTML table. What I want to do is insert a page break every after every sixth row of the table (i.e. page break after row 6, 12, 18, etc.) by doing something like this: <tr style="page-break-after: always;">. Is it possible to do it with JavaScript? Keep in mind that since data is generated from database I can't assign ID's to the table's rows. Is there any other way?
Thanks.
I am retrieving data from the database and displaying it inside HTML table. What I want to do is insert a page break every after every sixth row of the table (i.e. page break after row 6, 12, 18, etc.) by doing something like this: <tr style="page-break-after: always;">. Is it possible to do it with JavaScript? Keep in mind that since data is generated from database I can't assign ID's to the table's rows. Is there any other way?
Thanks.