Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82208

passing input text to dateable column search

$
0
0

Hello, I am trying to send an HTML input as text to:
table.column(1).search(searchQuery).draw();
however it seems to not like all type of text. So if my input is 1 it works fine. however if my input is a conditional statement
then it fails. for instance if my input is:
(d) => d > 1 && (d) < 3
it fails.
but if I do the following it works:
table.column(1).search((d) => d > 1 && (d) < 3).draw();

so I am assuming it doesn't handle text as I thought it did? or is there another trick to achieve this?

Thank you.


Viewing all articles
Browse latest Browse all 82208

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>