Skip to content

Instantly share code, notes, and snippets.

@andyf-7
Created May 3, 2015 10:54
Show Gist options
  • Save andyf-7/99ca079063993b3d43b9 to your computer and use it in GitHub Desktop.
Save andyf-7/99ca079063993b3d43b9 to your computer and use it in GitHub Desktop.
Search table in all td value on like match its only client side use js
function searchdata()
{
var values=$('#vardata').val();
$('#search_textdata').find('tr td a').each(function ()
{
var k=$(this).text();
if(k.contains(values))
{
$(this).parent('td').parent('tr').slideDown();
}
else
{
$(this).parent('td').parent('tr').slideUp();
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment