I try to hide buttons in my table when certain value is not "error".
It works perfectly fine on the first page, but due to pagination the buttons are not hidden on the second page.
$(function() {
$('#table1').each(function() {
var Cell = $(this).find('td:eq(2)');
debugger;
if (Cell.text() !== 'error' ) {
$(this).find('button').hide();
}
});
});