Answers for "on click something press enter key"

3

jquery on enter key pressed

//jQuery detect user pressing enter
$(document).on('keypress',function(e) {
    if(e.which == 13) {
        alert('User pressed Enter!');
    }
});
Posted by: Guest on July-31-2019
1

on enter press button

<input onkeyup="if(event.keyCode===13){submit.click()}"><button id="submit">submit</button>
Posted by: Guest on September-24-2021

Code answers related to "Assembly"

Browse Popular Code Answers by Language