multifilter icon indicating copy to clipboard operation
multifilter copied to clipboard

Adding serial number after filter applied

Open sanjrani opened this issue 7 years ago • 0 comments

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.

sanjrani avatar Jan 23 '18 12:01 sanjrani