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 www.woodstitch.com #
 
PREVIOUS NEXT
Tagged: #javascript #key #pressed #enter
ADD COMMENT
Topic
Name
6+3 =