Posted By

jackkeller on 11/01/11


Tagged

jquery


Versions (?)

Prevent Form Submission on Enter


 / Published in: JavaScript
 

  1. $("form").bind("keypress", function(e) {
  2. if (e.keyCode == 13) {
  3. return false;
  4. }
  5. });

Report this snippet  

You need to login to post a comment.