Search function and onclick event
Search function and onclick event
![Peepingtom](https://secure.gravatar.com/avatar/568e5ce603d1be7b39bd502a227c409e/?default=https%3A%2F%2Fvanillicon.com%2F568e5ce603d1be7b39bd502a227c409e_200.png&rating=g&size=120)
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]
:)