Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82039

Help on the implementation of the multi-column search custom button click event

$
0
0
Hello,I am Chinese.My English is very bad, hope to get your understanding
I hope to get your advice.
<input type="text" /> <input type="text" /> <input type="submit" id="send">
----------------
<table>
<thead>
......
</thead>
<tbody>
......
<tboyd>
</table>
------------------
I want to click on the submit button when multiple parameters need to be filtered is passed to the server.

Submit event is triggered Oh My understanding is that so bad
$(document).ready(function() {
$('#example')
.bind('sort', function () { eventFired( 'Sort' );})
.bind('flter', function () { eventFired( 'Filter' ); })
.bind('page', function () { eventFired( 'Page' ); })
.dataTable();
$("#own").bind('click',function () {
$('#example')
.bind('sort', function () { eventFired( 'Sort' );})
.bind('flter', function () { eventFired( 'Filter' ); })
.bind('page', function () { eventFired( 'Page' ); })
.dataTable();
})
} );

About additional parameters:
"fnServerParams": function ( aoData ) {
//console.log(aoData);
aoData.push( { "name": "more_data", "value": "my_value" } );
//console.log(aoData);
//确保你修改的数据传入数组,因为这是按引用传递的。
}

Viewing all articles
Browse latest Browse all 82039

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>