Created
May 3, 2015 10:54
-
-
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
This file contains 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
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