How to use the tablesorter plugin ?
jQuery Interview Questions and Answers
(Continued from previous question...)
How to use the tablesorter plugin ?
The tablesorter plugin allows sorting of tables on the client side. You include jQuery, and the plugin, and tell the plugin which tables you want to sort.
<script src="jquery.tablesorter.js"></script>
$(document).ready(function(){
$("#large").tablesorter();
});
$(document).ready(function() {
$("#large").tablesorter({
// striping looking
widgets: ['zebra']
});
});
(Continued on next question...)
Other Interview Questions
|