John John - 4 months ago 10
jQuery Question

Need to delete the search field using datatable jquery


Possible Duplicate:

is there anyway to remove the Search bar and footer in the jquery datatable plugin


I am very new to implement datatable for sorting my column.
Now, if I click on the column header, the record is sorting fine ascending and descending order. But I don't want any search field over there, as I have one customize search box. Now I am not finding how to remove the search option. Also, After getting record, I want to export the record in a csv file. According to the current record (ascending or descending order) how to do that?
Please help me.

Answer

To remove the search field from your table:

JQUERY

$('table').dataTable({"bFilter": false});

CSS

.dataTables_filter {
  display: none;
}

You can read all about personalizing the jQuery DataTables here!

Comments