JumboLove
6/7/2013 - 1:38 PM

Trigger Click event with Enter key press

Trigger Click event with Enter key press

// Attach keypress handler to input box.  Submit form if user presses 'enter' key.
jQuery('.email').keypress( function(e) {
  if(e.which == 13) {
    jQuery('#sendBtn').click();
    return false;
  }
  return true;
});