How do I get the content of the search field?

How do I get the content of the search field?

ThalliusThallius Posts: 31Questions: 4Answers: 0
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

  • ThalliusThallius Posts: 31Questions: 4Answers: 0
    Found it out

    $('.dataTables_filter input').val()

    Claus
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    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.