add attribute on search input

add attribute on search input

yskapellyskapell 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

Sign In or Register to comment.