Jquery-table-row-highlighter_0.3.js

View the original demo-page or the blog-post for more info.

Download

Parameters and initialisation

All parameters are optional

$(document).ready(function() {
  var params = {
			highlightClass : "highlight", // CSS-class added to the matching row
			inputTimeout : 1000, // In millisec
			debugElement : null, // Should be a reference to an Input-element
			column : 1, // Which column to check in each row - defaults to "1" (first col)
  		};

  $("table").highlighter(params);
});

Define a CSS-rule for the highlighted rows:

table tr.highlight td { background-color: yellow; }

Demonstration

Current input

Country Continent Capital