fnFilter() - Trying To Clear Contents of Filter Field and Reset Filter -Uses Bootstrap 3 input-group
fnFilter() - Trying To Clear Contents of Filter Field and Reset Filter -Uses Bootstrap 3 input-group
Joyrex
Posts: 92Questions: 14Answers: 3
Here's a DataTables Live link to what I'm trying to do: http://live.datatables.net/edit/72/edit?html,css,js,output
I had this working in DataTables 1.9.4 and Bootstrap 3, but for some reason now it no longer works - I'm not entirely sure it's how I'm targeting the filter input, or if fnFilter() has changed in DataTables 1.10 (the documentation I've read so far doesn't lead me to believe so).
Any advice/assistance is greatly appreciated!
I had this working in DataTables 1.9.4 and Bootstrap 3, but for some reason now it no longer works - I'm not entirely sure it's how I'm targeting the filter input, or if fnFilter() has changed in DataTables 1.10 (the documentation I've read so far doesn't lead me to believe so).
Any advice/assistance is greatly appreciated!
This discussion has been closed.
Replies
[code]
$('button.btn.btn-danger').click(function() {
$('input[type=search]').val('');
oTable.fnFilter('');
} );
[/code]