There are many table plugins out there, however, the majority of them try to add additional functionality that I simply do not need. I don't need sorting or pagination; I typically include sorting and pagination functionality through ajax or custom code. Because of this, I wrote this simple plugin that takes a datatable and adds jQuery ui styles to it. The primary purpose of the tableStyle plugin is to add jQuery UI styles to a datatable. The plugin is built using jQuery UI's Widget framework, therefore it follows the same api conventions as other jQuery UI widgets such as datepicker or dialog.
The plugin only has two options.
altClass: 'classnameone classnametwo',
hoverClass: 'classnameone classnametwo'
I haven't tested this plugin on tables that don't use thead tbody and tfoot yet as i haven't had a need for that to work (all of my tables have proper thead tbody and tfoot) Since this was built as a jQuery UI plugin, it is easy to create extensions for it or to build new widgets that extend this widget to add built-in functionality such as sorting and/or paging; I'll follow up on this later with an extension that adds simple client-side sorting to this widget. GitHub Repository: https://github.com/tentonaxe/jQuery-Tablestyle