add attribute on search input
add attribute on search input

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' }
]
});
This discussion has been closed.
Answers
This example shows how to remove the Datatables event handler and create a custom handler.
http://live.datatables.net/kiwoxuma/59/edit
Kevin