I have an html form with some input fields in it, one of the input fields is a search field, when I click the search button next to this search field, the search results will be returned from the server using ajax, what I want is to prevent sending forms when the user focuses on that particular search input field and press enter. By the way, I use AngularJS, so the solution may be slightly different from jQuery or pure javascript, as I think .. Do-able? Any advice would be appreciated!
source share