Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if enter key is pressed jquery

$(document).on('keypress',function(e) {
    if(e.which == 13) {
        alert('You pressed enter!');
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #enter #key #pressed #jquery
ADD COMMENT
Topic
Name
1+9 =