jQuery plugin that adds a class to table rows on the hover
event. In addition, if a link exists in the row then optionally the entire row can become clickable for that link.
- version - 0.1
- homepage - http://github.com/aaronrussell/jquery-table-highlighter/
- author - Aaron Russell
Simple usage:
$('#my_table').tableHighlighter();
Advanced usage:
$('#my_table').tableHighlighter({
hilightClass: 'highlight',
containsLinks: true,
linkSelector: 'a:first'
});
hilightClass
- The class to be applied to table rows onhover
. Defaults tohighlight
.containsLinks
- Whether the row contains any clickable links. Boolean defaults totrue
.linkSelector
- A jQuery selector to match the link on the table row. Defaults toa:first
.
Dual licensed under the MIT and GPL licenses.
Copyright (c) 2010 Aaron Russell.