christianbach / tablesorter

Flexible client-side table sorting
MIT License
1.03k stars 491 forks source link

README info #87

Open richardgmcmahon opened 9 years ago

richardgmcmahon commented 9 years ago

The README says

Start by telling tablesorter to sort your table when the document is loaded:

$(document).ready(function() { $("#myTable").tablesorter(); }

Could you be give some guidance where this should be placed in the html file e.g. after or between which tags

Thanks

infernocloud commented 9 years ago

That will go in a tag, and it can be anywhere in your HTML document - or

$(document).ready() is a JQuery feature that waits until the page has loaded the DOM and then executes the function inside. So using this, tablesorter will wait until your HTML is loaded.