Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
                }
}); 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #function #keypress #jquery
ADD COMMENT
Topic
Name
7+7 =