Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery - press enter to search with keypress()

0 votes
20 views
added Jun 28 in jQuery by lcjr First Warrant Officer (7,650 points)
HTML
<input type="text" id="PressSearch" />

 

$('#PressSearch').keypress(function(e){
  if(e.which == 13){//Enter keypad
    alert('Press enter keypad to search....');
  }
});

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...