Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery plugin DataTables individual column filtering on top?

I use this api with DataTables : http://www.sprymedia.co.uk/dataTables/example_multi_filter.html

But How I can put seach inputs above the table, next to "Search all columns"??

like image 441
Akawan Avatar asked Nov 27 '22 23:11

Akawan


2 Answers

You could try with CSS:

tfoot {
    display: table-header-group;
}
like image 65
Petah Avatar answered Mar 15 '23 08:03

Petah


You can use column filter add-on for DataTables. It can be configured to place filters below and above the heading row. See http://jquery-datatables-column-filter.googlecode.com/svn/trunk/dateRange.html, http://jquery-datatables-column-filter.googlecode.com/svn/trunk/numberRange.html and other examples on the site.

Quick update: The two URLs above are invalid now. Here's a working one: https://code.google.com/archive/p/jquery-datatables-column-filter/

like image 31
Jovan MSFT Avatar answered Mar 15 '23 06:03

Jovan MSFT