Calling DataTable search function on a Tablepress Table
-
I have a tablepress table on a wordpress page.
I would like to call the search DataTable function on a Tablepress table. Like this:
var table = $(‘#example’).DataTable();
// #myInput is a <input type=”text”> element
$(‘#myInput’).on( ‘keyup’, function () {
table.search( this.value ).draw();
} );How can I do this for a Tablepress table. Since my Tablepress table is on the page via shortcode, the instance has already been created.
How can I get an instance of the Tablepress table and call the search DataTables function?
I want to do a global filter search and redraw.
Thanks.
Don
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Calling DataTable search function on a Tablepress Table’ is closed to new replies.