Created
March 1, 2013 13:13
-
-
Save ismaels/5064581 to your computer and use it in GitHub Desktop.
Simple method to filter rows in a html table
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
# filtering row on a table | |
_searchItems: () => | |
criteria = $("#searchItems").val() | |
$("#schedules_table tbody tr").css('display', 'table-row') | |
$("#schedules_table tbody tr").not(":contains('#{criteria}')").each () -> | |
$(this).css('display', 'none') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment