I need to get a tr element which contains a td element which contains specific text. The td will contain that text and only that text
PHP
MySql
AJAX
jQuery
JavaScript
HTML
CSS
CSS3
$("#textbox").on('keyup',function(){
var f = $(this).val();
$("#table_data tr.listR").each(function(){
if ($(this).text().search(new RegExp(f, "i")) < 0) {
$(this).fadeOut();
} else {
$(this).show();
}
});
});
Demo You can perform by search() method with use RegExp matching text