jQuery keydown()
The jQuery keydown() method is used to attach a function to run when a keydown event occurs i.e., when a key is pressed on the keyboard. Syntax: To trigger the keydown event for selected elements. $(selector).keydown() To add a function to the keydown event. $(selector).keydown(function) Function: It is an optional parameter. The function parameter specifies … Read more