Answers for "how to fire a function on click of enter button on keyboard"

1

button onclick enter key

$("#id_of_textbox").keyup(function(event) {
    if (event.keyCode === 13) {
        $("#id_of_button").click();
    }
});
Posted by: Guest on June-01-2021
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 "how to fire a function on click of enter button on keyboard"

Code answers related to "Assembly"

Browse Popular Code Answers by Language