Answers for "enter key event"

4

javascript key pressed enter

$('.container').on('keydown', 'input', function(e) {
  if (e.keyCode === 13) {
    e.preventDefault();
  	e.stopImmediatePropagation();
    //Do your stuff...
  }
});
Posted by: Guest on June-11-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language