Can I move the search box outside the containing element?
Can I move the search box outside the containing element?
![codecowboy](https://secure.gravatar.com/avatar/202cc9656d82d88adbe3c39f63810d39/?default=https%3A%2F%2Fvanillicon.com%2F202cc9656d82d88adbe3c39f63810d39_200.png&rating=g&size=120)
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