Answers for "search box enter key javascript"

0

search box enter key javascript

document.getElementById("id_of_textbox")
    .addEventListener("keyup", function(event) {
    event.preventDefault();
    if (event.keyCode === 13) {
        document.getElementById("id_of_button").click();
    }
});
Posted by: Guest on August-05-2021

Code answers related to "search box enter key javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language