multifilter
multifilter copied to clipboard
Adding serial number after filter applied
I am facing problem when adding serial no in table after filter applied. means if I search something then serial number should be based on showing/visible data/row. if table has 5 records after filter then serial no should be 1,2,3,4,5.
where is my code. $('.filter').bind('keyup change', function () { $('table tr').each(function(index) { $(this).find('td:nth-child(1)').html(index-1+1); }); });
It works load time but after filter serial number remain same.