Datatables filtering
<p>I am having difficulties using the filtering function of Datatables. I use version 1.10. This is what I tried:</p>

<pre><code>$("#hide").click(function() {
    $.fn.dataTable.ext.search.push(
       function(settings, data, dataIndex) {
          return $(table.row(dataIndex).node()).attr('data-user') == 5;
       }
    );
    table.draw();
});    
$("#reset").click(function() {
    $.fn.dataTable.ext.search.pop();
    table.draw();
});
</code></pre>

<p>But the table doesn't update. Is there something I may be doing wrong? The array in question appears to be getting updated when i do a console.log, but there is no sign of the function being called.</p>

<p>Thanks a lot!</p>