NOTE!:

* If you have a different JSON format and need help with the processing code, please ask the question on StackOverflow or message me directly (gmail; wowmotty). Please don't open an issue for help with code.

Demo


1 2 3 4 5
1 2 3 4 5

Javascript


	

CSS


	

HTML

<!-- pager -->
<div id="pager" class="pager">
  <form>
    <img src="first.png" class="first"/>
    <img src="prev.png" class="prev"/>
    <span class="pagedisplay"></span> <!-- this can be any element, including an input -->
    <img src="next.png" class="next"/>
    <img src="last.png" class="last"/>
    <select class="pagesize">
      <option selected="selected" value="25">25</option>
    </select>
  </form>
</div>

<table class="tablesorter">
  <thead>
    <tr>
      <th>1</th> <!-- thead text will be updated from the JSON; make sure the number of columns matches the JSON data -->
      <th>2</th>
      <th>3</th>
      <th>4</th>
      <th>5</th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th>1</th> <!-- tfoot text will be updated at the same time as the thead -->
      <th>2</th>
      <th>3</th>
      <th>4</th>
      <th>5</th>
    </tr>
  </tfoot>
  <tbody> <!-- tbody will be loaded via JSON -->
  </tbody>
</table>

Next up: Initializing tablesorter on a empty table ››