Programmatically search a table with jQuery DataTables -
i using jquery datatables 1.10.9 , jquery 1.8.3. i'm trying programmatically search in that, without success.
i tried:
function applyfilter(filter) { $("#datatable").filter(filter); }
and
function applyfilter(filter) { $("#datatable").fnfilter(filter); }
use search()
api method perform search, see code below:
function applyfilter(filter) { $('#datatable').datatable().search(filter).draw(); }
Comments
Post a Comment