Adding other elements to filter area breaks searching

Adding other elements to filter area breaks searching

zirconxzirconx Posts: 7Questions: 0Answers: 0
edited March 2010 in General
I wanted to add a couple radio buttons to the search/filter area that control some things I'm doing with the table data.

So I used some JavaScript to move those into the area next to the search box, but found that this breaks searching. I'm guessing it has something to do with how datatables is grabbing that input?

I would like to suggest adding an ID to this element and grabbing the data using the ID. I think right now its probably looking for all the inputs in that 'name'_filter div, and it only expects one, so when I have a couple more in there it breaks.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    DataTables attaches a keyup listener to that text box - so anything that causes that to be removed would effect this. Visual Event ( http://sprymedia.co.uk/article/Visual+Event ) will be able to tell you f the event listener is still attached to the node or now.

    Allan
This discussion has been closed.