Move search boxes for each column just below the table header
Move search boxes for each column just below the table header
YoDavish
Posts: 123Questions: 46Answers: 3
Hello, I'm using this example below and the search is working just fine.
https://datatables.net/examples/api/multi_filter.html
However, I would like to move the search boxes just below the table header for each column. Is this possible?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
On line 3 in the example you've linked it shows:
I suspect something like this should do it (Not tested at all):
Edit: Just saw line 15, that'll probably need changing too (
this.footer
-->this.header
)@DAustin
This was very close to what I'm looking for, except the sort buttons that sort ascending or descending are placed next to each search column box. Any suggestions on how to move them up?
Here is an example I've posted a few times:
http://live.datatables.net/saqozowe/3/edit
Note the use of
orderCellsTop
to move the sorting function to the top row.Kevin