How do I filter data using textbox after clicking radio buttons?

How do I filter data using textbox after clicking radio buttons?

JoshNavJoshNav Posts: 2Questions: 2Answers: 0

I think this question is a bit complicated but I will try to explain my question as best as I can.
I have created my own data table with radio buttons with textbox for filtering. This is the JSFiddle link for the reference:

https://jsfiddle.net/josshytopps/n7xuqy56/15/

What I want to do is that after I select a radio button that is connected to the column names, I want to put a value related to the column name that I selected inside the textbox. After I enter a value in the text box, I then click the "Apply filters" button to apply my filter.

Answers

  • allanallan Posts: 63,491Questions: 1Answers: 10,470 Site admin

    "serverSide": true,

    That means that any filtering you perform would be done by whatever server-side script you are using. There isn't an ajax option in your table there, so I don't actually know what script you are using, but that's where the filtering logic would need to be added. Use ajax.data to send the information from your form to your server-side script so you can do the filtering there.

    Allan

Sign In or Register to comment.