I have a table that when i type on input field it will show those like data that i searched realtime, i mean it filtered the data when i type in textbox.
i already did the filtered but i want to add some features that shows a text that count how many rows are filtered.
like this

this is my filtering code
function searchTable(inputVal)
{
var table = $('#tblData');
table.find('tr').each(function(index, row)
{
var allCells = $(row).find('td');
if(allCells.length)
{
var found = false;
allCells.each(function(index, td)
{
var regExp = new RegExp(inputVal, 'i');
if(regExp.test($(td).text()))
{
found = true;
return false;
}
});
if(found == true)$(row).show();else $(row).hide();
}
});
}