tablesorter plugin
Docs: http://tablesorter.com/docs/
Load after jquery*.js:
Requires both thead and tbody tags.
Does no decoration whatsoever by default.
Normally want to stripe rows by default, so set widget option to ["zebra"]:
jo.tablesorter({widgets: ["zebra"]});
STYLING
Assign target tables class of "tablesorter".
Load:
where is blue or green
develop plugin. I.e. implement a new method: jo.myPlugin(...)
Implement function:
jQuery.fn.myPlugin = function(options) {
var settings = jQuery.extend({ opt1: dfltVal1,...}, options);
return this.each(function() { ... use settings.opt1...
// Or do whatever then return 'this'.
}