≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
How do I get the content of the search field?
How do I get the content of the search field?
Thallius
Posts: 31
Questions: 4
Answers: 0
October 2013
edited October 2013
in
General
Hi,
what is the easiest way to get the actual value of the search fields in my own javascript function?
Regards
Claus
Replies
Thallius
Posts: 31
Questions: 4
Answers: 0
October 2013
Found it out
$('.dataTables_filter input').val()
Claus
allan
Posts: 65,826
Questions: 1
Answers: 10,952
Site admin
October 2013
In 1.10 you'll be able to use the new API: `table.search();` will give you the current filtering value :-).
Allan
This discussion has been closed.
Replies
$('.dataTables_filter input').val()
Claus
Allan