Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

button onclick enter key

$("#id_of_textbox").keyup(function(event) {
    if (event.keyCode === 13) {
        $("#id_of_button").click();
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #button #onclick #enter #key
ADD COMMENT
Topic
Name
5+9 =