Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript on enter key searchbox

// Bind Enter key to search bar
$("#MySearchBar").keypress(function (e) {
  if (e.keyCode === 13) {
    MyVoidFunction();
  }
});
Source by stackhowto.com #
 
PREVIOUS NEXT
Tagged: #javascript #enter #key #searchbox
ADD COMMENT
Topic
Name
3+2 =