javascript,jquery,html5,mobile-development
I think you are using and type="search", so you can attach an event handler to the search event like: $('input[type=search]').on('search', function () { // search logic }); or: <input type="search" name="search" onsearch="OnSearch(this)"/> Doc: Occurs when the user presses the ENTER key or clicks the 'Erase search text' button (x) in...