Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript key pressed enter

$('.container').on('keydown', 'input', function(e) {
  if (e.keyCode === 13) {
    e.preventDefault();
  	e.stopImmediatePropagation();
    //Do your stuff...
  }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #key #pressed #enter
ADD COMMENT
Topic
Name
1+1 =