Skip to content

Instantly share code, notes, and snippets.

@ismaels
Created March 1, 2013 13:13
Show Gist options
  • Save ismaels/5064581 to your computer and use it in GitHub Desktop.
Save ismaels/5064581 to your computer and use it in GitHub Desktop.
Simple method to filter rows in a html table
# 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