Answers for "check if keydown is enter in javascript"

3

how to check if enter is pressed javascript

$('#usersearch').keydown(function(e){
    if(e.keyCode === 13){
            alert("Enter was pressed ");
     }  
});
Posted by: Guest on September-14-2020

Code answers related to "check if keydown is enter in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language