Posted By

tutrinh211 on 04/05/11


Tagged

form key jquery enter press submission


Versions (?)

jQuery enter key press form submission


 / Published in: jQuery
 

  1. $('.input').keypress(function(e) {
  2. if(e.which == 13) {
  3. jQuery(this).blur();
  4. jQuery('#submit').focus().click();
  5. }
  6. });

Report this snippet  

You need to login to post a comment.