Change value of all ssearch in a Jquery Datatable request

Asked

Viewed 238 times

0

I’m using the methods

$(_table) .DataTable() .column(colIdx) .search(text) .draw();

to perform filters on my Datatable. However, to decrease the number of requests, I perform this function only when I press the "ENTER" key in a text box passing, in this way, the value of the colIdx and the value of this text box to the Datatable. It turns out that by changing the value of a text box and sending a new request by passing another input (giving ENTER in another input), the sSeach value for the first modified value input remains the same. Would there be any way to take the value of all inputs and change the value of all sSeach in a single request?

Follow an example of the sSearch parameters of requests:

--BY CHANGING THE INPUT VALUE AND PRESSING ENTER

sSearch_0:teste
sSearch_1:abcd

--WHEN CHANGING THE INPUT VALUE FOR sSEACH_0 AND sSerach_1 AND GIVE ENTER IN INPUT FOR sSERACH_1

sSearch_0:teste
sSearch_1:wxyz

As the example shows, the value of sSeach_0 has not changed even with the input value changed.

Would there be any way to take the value of all inputs and change the value of all sSeach in a single request?

  • You are using some plugin in your jquery?

  • @Diegomoreno no plugin other than jquery itself

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.