MultiPage print with Javascript and CSS - javascript

I am facing issues showing page nos while printing multiple multipage reports
below is the sample HTML Format :
<style type="text/css"> body {
counter-reset: report 1 page 0;
}
td.footer:after {
counter-increment: page;
content: "Page " counter(page)" of Report " counter(report);
}
.rowLabel3 {
counter-reset: page 0;
counter-increment: report
}
</style>
<table>
<thead style="display: table-header-group;">
<tr>
<th>Report Specific Header Contents which needs to come on every page we are displaying report</th>
</tr>
</thead>
<tbody style="display: table-row-group;">
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
</tr>
</tbody>
<tfoot style="display: table-footer-group;">
<tr>
<td class="footer">
</td>
</tr>
</tfoot>
</table>
<div class="rowLabel3" style="page-break-after:always;">*** END OF REPORT ***</div>
<table>
<thead style="display: table-header-group;">
<tr>
<th>Report Specific Header Contents which needs to come on every page we are displaying report</th>
</tr>
</thead>
<tbody style="display: table-row-group;">
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
<tr>
<td>Some Data1</td>
</tr>
</tbody>
<tfoot style="display: table-footer-group;">
<tr>
<td class="footer">
</td>
</tr>
</tfoot>
</table>
<div class="rowLabel3" style="page-break-after:always;">*** END OF REPORT ***</div>​
Here , when Tfoot appear on each page It does not actually increment the section.
If this approach is correct what I have tried is also count the no of rows and then added extra row after 40 rows and add a page break with Page nos. But that is not consistent across different reports.

It's work like this :
body {
counter-reset: report 1 page 0 ;
}
td.footer:after {
counter-increment: page;
content: "Page " counter(page) " of Report " counter(report);
}
.rowLabel3{
counter-reset: page 1;
counter-increment: report
}
i just change #page and rename

Related

How to detect exact offset top() using jquery after scroll?

I have a table i want to detect offset top of TR where is clicked this is working fine but after scroll page this is not working fine. Why after scroll offset().top is changed? How can fix it?
$(function() {
$('tr').click(function() {
offsetTop = $(this).offset().top;
console.log(offsetTop);
});
});
.myDiv {
overflow-y: auto;
height: 250px;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<div class="myDiv">
<table class="table table-bordered">
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>Doe</td>
<td>john#example.com</td>
</tr>
<tr>
<td>Mary</td>
<td>Moe</td>
<td>mary#example.com</td>
</tr>
<tr>
<td>July</td>
<td>Dooley</td>
<td>july#example.com</td>
</tr>
<tr>
<td>July 1</td>
<td>Dooley</td>
<td>july#example.com</td>
</tr>
<tr>
<td>July 2</td>
<td>Dooley</td>
<td>july#example.com</td>
</tr>
<tr>
<td>July 3</td>
<td>Dooley</td>
<td>july#example.com</td>
</tr>
<tr>
<td>July 4</td>
<td>Dooley</td>
<td>july#example.com</td>
</tr>
<tr>
<td>July 5</td>
<td>Dooley</td>
<td>july#example.com</td>
</tr>
<tr>
<td>July 6</td>
<td>Dooley</td>
<td>july#example.com</td>
</tr>
<tr>
<td>July 7</td>
<td>Dooley</td>
<td>july#example.com</td>
</tr>
<tr>
<td>July 8</td>
<td>Dooley</td>
<td>july#example.com</td>
</tr>
<tr>
<td>July 9</td>
<td>Dooley</td>
<td>july#example.com</td>
</tr>
<tr>
<td>July 10</td>
<td>Dooley</td>
<td>july#example.com</td>
</tr>
</tbody>
</table>
</div>
You could always calculate the offset, factoring in the scroll position:
var offset_t = $(selector).offset().top - $(window).scrollTop();
var offset_l = $(selector).offset().left - $(window).scrollLeft();

Cant find table-rows

I'm trying find and Delete the rows <tr> as you see in code below, but for some reason it can't find elements.
$('#ResultProduct').on('click', '.deletebtn', function(e) {
var targetElement = $(e.target);
$(targetElement).closest("tr").find('.RMAJS').remove();
$(targetElement).closest("tr").find('.section').remove();
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<table>
<tbody id="ResultProduct">
<tr>
<td><a class="deletebtn">Delete</a></td>
</tr>
<tr class="RMAJS">
<td>some text 1</td>
<td>some text 1</td>
</tr>
<tr class="section">
<td>some text 1</td>
<td>some text 1</td>
</tr>
<tr>
<td><a class="deletebtn">Delete</a></td>
</tr>
<tr class="RMAJS">
<td>some text 2</td>
<td>some text 2</td>
</tr>
<tr class="section">
<td>some text 2</td>
<td>some text 2</td>
</tr>
</tbody>
</table>
Can anyone please help me!
Using closest() then find() will go up to the tr then back down into the element using find(). You would need to find('tbody') then look inside that element to find('.RMAJS').
This wouldn't solve your issue, because you would end up removing all .RMAJS elements from the tbody when it looks like all you want to do is remove the next elements.
In your case, you're going to want to use next() rather than find().
$('#ResultProduct').on('click', '.deletebtn', function(e) {
var targetElement = $(e.target);
$(targetElement).closest("tr").next('.RMAJS').remove();
$(targetElement).closest("tr").next('.section').remove();
})
<table>
<tbody id="ResultProduct">
<tr>
<td><a class="deletebtn">Delete</a></td>
</tr>
<tr class="RMAJS">
<td>some text 1</td>
<td>some text 1</td>
</tr>
<tr class="section">
<td>some text 1</td>
<td>some text 1</td>
</tr>
<tr>
<td><a class="deletebtn">Delete</a></td>
</tr>
<tr class="RMAJS">
<td>some text 2</td>
<td>some text 2</td>
</tr>
<tr class="section">
<td>some text 2</td>
<td>some text 2</td>
</tr>
</tbody>
</table>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
function removeRow(row) {
$(row).closest("tr").remove();
}
<script src="https://code.jquery.com/jquery-3.1.0.js"></script><table>
<tbody id="ResultProduct">
<tr>
</tr>
<tr class="RMAJS">
<td>some text 1</td>
<td>some text 1</td>
<td><a onclick="removeRow(this)" class="deletebtn" href="#">Delete</a></td>
</tr>
<tr class="section">
<td>some text 1</td>
<td>some text 1</td>
<td><a onclick="removeRow(this)" class="deletebtn" href="#">Delete</a></td>
</tr>
<tr class="RMAJS">
<td>some text 2</td>
<td>some text 2</td>
<td><a onclick="removeRow(this)" class="deletebtn" href="#">Delete</a></td>
</tr>
<tr class="section">
<td>some text 2</td>
<td>some text 2</td>
<td><a onclick="removeRow(this)" class="deletebtn" href="#">Delete</a></td>
</tr>
</tbody>
</table>

html CSS Table Scroll from the middle of the table

I have 20 Columns in my HTML Table. I will be having hundreds of records on my table. I have kept a horizontal scroll but my problem is When I am viewing the records on middle Part of the table and I want to scroll horizontally, I want to go to the bottom of the table.
I need an option to scroll from the middle of the table
<div style="width: 1100px;overflow-x: auto;">
<table >
<thead>
<td>Col-1</td>......<th>col-20</th>
</thead>
<tbody>
<?php echo "dynamic Records"; ?>
</tbody>
</table>
</div>
you need to view the table within the <div>, this <div> will be the viewport, that way you can view the table of any size, and can scroll vertically and horizontally to access complete table. try this code, it should work as you expected.
.parent {
/* width: 500px; */
height: 150px;
overflow: auto;
}
.child {
width: 1100px;
border: 1px;
}
<div class="parent">
<table class='child'>
<thead>
<td>Col-1</td>
<th>col-20</th>
</thead>
<tbody>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<tr>
<td>Col-1 Data</td>
<td>col-2 Data</td>
</tr>
<?php echo "dynamic Records"; ?>
</tbody>
</table>
</div>

Rearrange table rows in hardcoded table

I am unable to edit the HTML directly in a form and would like to move some things around. I created a very simplified version of what is going on below. So for example, if I would like to move the row with class "comments" to just below the row with class "matching" how could I do this on page load?
I tried doing something like:
$('tr.comments').closest('tr').after($('tr.matching').closest('tr'));
Here is the basic code, thank you for your help!! :)
<table>
<tbody>
<tr class="designation">
<td>Some text</td>
</tr>
<tr class="comments">
<td>More text</td>
</tr>
</tbody>
<tbody>
<tr class="levels">
<td>level 1</td>
</tr>
<tr class="amount">
<td>$500</td>
</tr>
</tbody>
<tbody>
<tr class="matching">
<td>donor</td>
</tr>
<tr class="mailing">
<td>yes</td>
</tr>
</tbody>
Try with this $('tr.matching').after($('tr.comments'));.
$('tr.matching').after($('tr.comments'));
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<table>
<tbody>
<tr class="designation">
<td>Some text</td>
</tr>
<tr class="comments">
<td>More text</td>
</tr>
</tbody>
<tbody>
<tr class="levels">
<td>level 1</td>
</tr>
<tr class="amount">
<td>$500</td>
</tr>
</tbody>
<tbody>
<tr class="matching">
<td>donor</td>
</tr>
<tr class="mailing">
<td>yes</td>
</tr>
</tbody>
</table>
$(".matching").after($(".comments"));

Want to Improve code functionality for Pagination in Jquery

I have made table which has sorting option also it has pagination. But the problem it has only Next, Last, Previous and First. I want it also should have page number displaying on which page it is and the total number of pages.
I tried getting the button of page number by adding it but the problem is that on clicking them it won't go the page. Actually I copied the pagination from somewhere so I am not able to do it properly.
The working code is here
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://tablesorter.com/jquery-latest.js"></script>
<script type="text/javascript" src="http://tablesorter.com/__jquery.tablesorter.js"></script>
<script type="text/javascript" src="http://tablesorter.com/addons/pager/jquery.tablesorter.pager.js"></script>
<script type="text/javascript" src="http://tablesorter.com/docs/js/chili/chili-1.8b.js"></script>
<script type="text/javascript" src="http://tablesorter.com/docs/js/docs.js"></script>
<script type="text/javascript" src="http://flaviusmatis.github.io/simplePagination.js/jquery.simplePagination.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("table")
.tablesorter({widthFixed: true, widgets: ['zebra']})
.tablesorterPager({container: $(".tablesorter")});
});
</script>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
</style>
</head>
<body>
<table id="myTable" class="" style="width:50%">
<thead>
<tr>
<th><span>ID</span></th>
<th><span>Name</span></th>
<tr>
<tbody>
<td>1</td>
<td>Jill</td>
</tr>
<tr>
<td>2</td>
<td>Bill</td>
</tr>
<tr>
<td>3</td>
<td>Chill</td>
</tr>
<tr>
<td>4</td>
<td>Adam</td>
</tr>
<tr>
<td>5</td>
<td>Andrea</td>
</tr>
<tr>
<td>6</td>
<td>Stephen</td>
</tr>
<tr>
<td>7</td>
<td>Rose</td>
</tr>
<tr>
<td>8</td>
<td>Chuck</td>
</tr>
<tr>
<td>9</td>
<td>Barney</td>
</tr>
<tr>
<td>10</td>
<td>Alan</td>
</tr>
<tr>
<td>11</td>
<td>Ted</td>
</tr>
<tr>
<td>12</td>
<td >Simon</td>
</tr>
<tr>
<td>13</td>
<td >Simon</td>
</tr>
<tr>
<td>14</td>
<td >Larry</td>
</tr>
<tr>
<td>15</td>
<td >Harry</td>
</tr>
<tr>
<td>16</td>
<td >Ron</td>
</tr>
<tr>
<td>17</td>
<td>George</td>
</tr>
<td >18</td>
<td>John</td>
</tr>
<tr>
<td>19</td>
<td>Jay</td>
</tr>
<tr>
<td>20</td>
<td>Laura</td>
</tr>
<tr>
<td>21</td>
<td>Michael</td>
</tr>
<tr>
<td>22</td>
<td>George</td>
</tr>
<td >23</td>
<td>John</td>
</tr>
<tr>
<td>24</td>
<td>Jay</td>
</tr>
<tr>
<td>25</td>
<td>Laura</td>
</tr>
<tr>
<td>26</td>
<td>Michael</td>
</tr>
<tr>
<td>27</td>
<td>George</td>
</tr>
<td >28</td>
<td>John</td>
</tr>
<tr>
<td>29</td>
<td>Jay</td>
</tr>
<tr>
<td>30</td>
<td>Laura</td>
</tr>
<tr>
<td>31</td>
<td>Michael</td>
</tr>
<tr>
<td>32</td>
<td>George</td>
</tr>
<td >33</td>
<td>John</td>
</tr>
<tr>
<td>34</td>
<td>Jay</td>
</tr>
<tr>
<td>35</td>
<td>Laura</td>
</tr>
<tr>
<td>36</td>
<td>Michael</td>
</tr>
<tr>
<td>37</td>
<td>George</td>
</tr>
<td >38</td>
<td>John</td>
</tr>
<tr>
<td>39</td>
<td>Jay</td>
</tr>
<tr>
<td>40</td>
<td>Laura</td>
</tr>
<tr>
<td>41</td>
<td>Michael</td>
</tr>
<tr>
<td>42</td>
<td>George</td>
</tr>
<td >43</td>
<td>John</td>
</tr>
<tr>
<td>44</td>
<td>Jay</td>
</tr>
<tr>
<td>45</td>
<td>Laura</td>
</tr>
<tr>
<td>46</td>
<td>Michael</td>
</tr>
<tr>
<td>47</td>
<td>George</td>
</tr>
<td >48</td>
<td>John</td>
</tr>
<tr>
<td>49</td>
<td>Jay</td>
</tr>
<tr>
<td>50</td>
<td>Laura</td>
</tr>
<tr>
<td>51</td>
<td>Michael</td>
</tr>
<tr>
<td>52</td>
<td>George</td>
</tr>
<td >53</td>
<td>John</td>
</tr>
<tr>
<td>54</td>
<td>Jay</td>
</tr>
<tr>
<td>55</td>
<td>Laura</td>
</tr>
<tr>
<td>56</td>
<td>Michael</td>
</tr>
<tr>
<td>57</td>
<td>George</td>
</tr>
<td >58</td>
<td>John</td>
</tr>
<tr>
<td>59</td>
<td>Jay</td>
</tr>
<tr>
<td>60</td>
<td>Laura</td>
</tr>
<tr>
<td>61</td>
<td>Michael</td>
</tr>
<tr>
<td>62</td>
<td>George</td>
</tr>
<tr>
<td >63</td>
<td>John</td>
</tr>
<tr>
<td>64</td>
<td>Jay</td>
</tr>
<tr>
<td>65</td>
<td>Laura</td>
</tr>
<tr>
<td>66</td>
<td>Michael</td>
</tr>
<tr>
<td>67</td>
<td>George</td>
</tr>
<td >68</td>
<td>John</td>
</tr>
<tr>
<td>69</td>
<td>Jay</td>
</tr>
<tr>
<td>70</td>
<td>Laura</td>
</tr>
<tr>
<td>71</td>
<td>Michael</td>
</tr>
<tr>
<td >72</td>
<td>John</td>
</tr>
<tr>
<td>73</td>
<td>Jay</td>
</tr>
<tr>
<td>74</td>
<td>Jay</td>
</tr>
<tr>
<td>75</td>
<td>Laura</td>
</tr>
<tr>
<td>76</td>
<td>Michael</td>
</tr>
<tr>
<td>77</td>
<td>George</td>
</tr>
<td >78</td>
<td>John</td>
</tr>
<tr>
<td>79</td>
<td>Jay</td>
</tr>
<tr>
<td>80</td>
<td>Laura</td>
</tr>
<tr>
<td>81</td>
<td>Michael</td>
</tr>
<tr>
<td >82</td>
<td>John</td>
</tr>
<tr>
<td >83</td>
<td>John</td>
</tr>
<tr>
<td>84</td>
<td>Jay</td>
</tr>
<tr>
<td>85</td>
<td>Laura</td>
</tr>
<tr>
<td>86</td>
<td>Michael</td>
</tr>
<tr>
<td>87</td>
<td>George</td>
</tr>
<td >88</td>
<td>John</td>
</tr>
<tr>
<td>89</td>
<td>Jay</td>
</tr>
<tr>
<td>90</td>
<td>Laura</td>
</tr>
<tr>
<td>91</td>
<td>Michael</td>
</tr>
<tr>
<td>92</td>
<td>Michael</td>
</tr>
<tr>
<td >93</td>
<td>John</td>
</tr>
<tr>
<td>94</td>
<td>Jay</td>
</tr>
<tr>
<td>95</td>
<td>Laura</td>
</tr>
<tr>
<td>96</td>
<td>Michael</td>
</tr>
<tr>
<td>97</td>
<td>George</td>
</tr>
<td >98</td>
<td>John</td>
</tr>
<tr>
<td>99</td>
<td>Jay</td>
</tr>
<tr>
<td>100</td>
<td>Laura</td>
</tr>
</tbody>
</table>
<div id="pager" class="tablesorter" style="top: 900px; position: absolute;">
<form>
<img src="http://tablesorter.com/addons/pager/icons/first.png" class="first">
<img src="http://tablesorter.com/addons/pager/icons/prev.png" class="prev">
<img src="http://tablesorter.com/addons/pager/icons/next.png" class="next">
<img src="http://tablesorter.com/addons/pager/icons/last.png" class="last">
<select class="pagesize">
<option selected="selected" value="10">10</option>
<option value="20">20</option>
<option value="25">25</option>
<option value="30">30</option>
</select>
</form>
</div>
</body>
</html>
Please help me...

Categories

Resources