Answers for "how to call function on every keypress in jquery"

0

how to call function on every keypress in jquery

$("#inputFoodChoice").keyup(function (e) {
                var code = (e.keyCode ? e.keyCode : e.which);
                if (code == 13) { //Enter keycode
                    e.preventDefault();
                    checkInputValue(e);
                }
});
Posted by: Guest on December-02-2020

Code answers related to "how to call function on every keypress in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language