Search function and onclick event
Search function and onclick event
Peepingtom
Posts: 1Questions: 0Answers: 0
Hi,
I'm using this great script that is DataTables.
I'm using it with large table, a lot of datas, so I would like to be able to trigger the search function only by the click on a button , and not on key change, that make a lot of ajax call to my server.
Any idea where to start ?
thanks again for this script.
I'm using this great script that is DataTables.
I'm using it with large table, a lot of datas, so I would like to be able to trigger the search function only by the click on a button , and not on key change, that make a lot of ajax call to my server.
Any idea where to start ?
thanks again for this script.
This discussion has been closed.
Replies
Please do some suggestion for this problem. I want search filter with ONCLICK Event.
[code]
/*HTML Code*/
Search
$(document).ready(function() {
var oTable = $('#example').dataTable();
$('#setV').click( function () {
oTable.fnFilter( $('#txt').val());
} );
[/code]
:)