Browse - Programming Tips - How do I make the dataTables jQuery plugin refilter (the filtering

Date: 2009dec18
Language: javaScript

Q.  How do I make the dataTables jQuery plugin refilter (the filtering
criteria has changed)?

A.  Call fnDraw() like this:

// At initialization time: gTbl = $('#mytable').dataTable({ // When the filter criteria has changed and you want to refilter. // This applies when you have a custom filter. gTbl.fnDraw();