Search on click of a button

Search on click of a button

bluesapphirebluesapphire Posts: 17Questions: 0Answers: 0
edited April 2011 in General
Bt default, search is made after each key stroke. Can some one guide me, how can I place a button along with input field of search and upon clicking of this button , search should be made.

Thanks in advance

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    You would need to do something like this: http://datatables.net/plug-ins/api#fnFilterOnReturn . This plug-in function will unbind the default listener and then add it's own for the return key before making the filter request. A similar approach can be done to bind a click handler to a button you add in and have that trigger the filtering.

    Allan
This discussion has been closed.