To allow datatables to filter data on page load itself use
$(document).ready(function() {
oTable = $('#example').dataTable();
/* Filter immediately all columns */
oTable.fnFilter( 'test string' );
/* Filter only 2nd columns */
oTable.fnFilter( 'test string', 2 );
} );
No comments:
Post a Comment