Search the table by the first input or the second input

Search the table by the first input or the second input

r_zhangr_zhang Posts: 5Questions: 2Answers: 0

Hi Everyone,

I asked this question but did not provide a link for test case. So I created a new question for this.
I disabled the default search button and created two input fields, one drop down select box and one search button myself. But it seems only the last input value get passed into the search function. But what I really want is that the DataTable search for the input value provided by the first box or the second box or the selected value from the drop down menu. For example, I can type in "Ashton Cox" into either the first box or the second box, it'll give the the row containing "Ashton Cox". But right now, only the input from the second box is working. The following is the code, can anyone help me please?

The test case link is: http://live.datatables.net/suzehepo/1/edit?html,css,js,output

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,144Questions: 26Answers: 4,736
    Answer ✓

    Please don't duplicate your questions. Please see the answers in your other thread.

    Kevin

This discussion has been closed.