I would suggest not adding a new filter to the array on every key press - although the push / pop was a clever way of doing it. But it wouldn't be present if your user sorted the table for example.
The dtApi variable is used to access the DataTables API, and I've stored it in a variable so it doesn't need to be created on every single filter call.
Answers
Hi Alex,
You would need to implement a custom search plug-in.
Allan
Hi Alan and thank you for your answer.
I'm testing it and cannot access values of input fields in column 9
data[9] returns always empty value.
How can I access it?
Try something along the lines of:
I would suggest not adding a new filter to the array on every key press - although the push / pop was a clever way of doing it. But it wouldn't be present if your user sorted the table for example.
The
dtApi
variable is used to access the DataTables API, and I've stored it in a variable so it doesn't need to be created on every single filter call.Allan