Can I move the search box outside the containing element?

Can I move the search box outside the containing element?

codecowboycodecowboy Posts: 8Questions: 0Answers: 0
edited March 2012 in General
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.

Replies

  • yee379yee379 Posts: 6Questions: 0Answers: 0
    i would like this feature too
  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    > Can I move the search box to another div in my page which already exists?

    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
This discussion has been closed.