add attribute on search input
add attribute on search input
yskapell
Posts: 47Questions: 14Answers: 3
Hello,
I am using datatable to show pagination from a table.
Is it possible to add this " onkeyup="checkPinyin(this)" " on search input text?
I have this code
var table = $('#searchWords').DataTable({
'processing': true,
'serverSide': true,
'serverMethod': 'post',
'ajax': {
'url':'search.php'
},
'columns': [
{ data: 'ideogram' },
{ data: 'pinyin' },
{ data: 'type' },
{ data: 'meaning' }
]
});
Answers
This example shows how to remove the Datatables event handler and create a custom handler.
http://live.datatables.net/kiwoxuma/59/edit
Kevin