Datatables Global Search Within Input Fields
Datatables Global Search Within Input Fields
connor666
Posts: 1Questions: 1Answers: 0
Hello,
I have input fields within my datatable and I would like users to be able to search using the globalsearch and identify values within those input fields.
The fields range from dropdowns to text fields.
I have done quite a bit of hunting around but cannot find a solution.
Hope you can help!
Kind Regards,
Connor
This discussion has been closed.
Answers
Hi Connor,
The value of the input element is a document property and is not actually in the HTML (other than the
value
attribute but that doesn't get updated as the input changes - its the property that changes) which is why this doesn't work out of the box with DataTables.You would have to write your own search plug-in that gets the values form the DOM input elements and then search them.
Allan