Created
February 3, 2014 17:37
-
-
Save ef2k/8788460 to your computer and use it in GitHub Desktop.
Row filtering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('input.filter').live('keyup', function() { | |
| var rex = new RegExp($(this).val(), 'i'); | |
| $('.searchable tr').hide(); | |
| $('.searchable tr').filter(function() { | |
| return rex.test($(this).text()); | |
| }).show(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment