author | Dan Fuhry <dan@fuhry.us> |
Sat, 16 Feb 2013 20:47:45 -0500 | |
changeset 7 | faf6f7941e8f |
parent 0 | 3906ca745819 |
permissions | -rw-r--r-- |
$(function() { $('.grep-filter').bind('keyup', function() { var searchkey = $(this).val(); if ( $(this).val() == '' ) { $('.grep-me tr').show(); return; } $('.grep-me tr').each(function(i, e) { if ( $('.grep-col', e).text().toLowerCase().indexOf(searchkey.toLowerCase()) > -1 ) $(e).show(); else $(e).hide(); }); }); });