javascript - Custom search box using your own <input type="text"> -


as can see in this example jquery datatables has search box function.

i want create customized search box design. possible create own using code below outside datatables?

<input type="text" id="search" name="search">  

please see search api example , how global search implemented.

for example, can use code below search id of search box:

$(document).ready(function() {     $('#example').datatable();      $('#search').on( 'keyup click', function () {        $('#example').datatable().search(            $('#search').val()        ).draw();     } );      } ); 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -