Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check if enter is pressed javascript

$('#usersearch').keydown(function(e){
    if(e.keyCode === 13){
            alert("Enter was pressed ");
     }  
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #enter #pressed #javascript
ADD COMMENT
Topic
Name
5+1 =