Can I move the search box outside the containing element?
Can I move the search box outside the containing element?
codecowboy
Posts: 8Questions: 0Answers: 0
Can I move the search box to another div in my page which already exists? e.g. I have a div with an ID of "header" in my page and I want to move the search filter there? http://datatables.net/examples/basic_init/dom.html seems to only handle creating new divs.
This discussion has been closed.
Replies
Sure:
[code]
$('div.dataTables_filter').appendTo( whatever... );
[/code]
Or you can put your own text box in the document anywhere you want and use the fnFilter API to apply a filter from it.
Allan