jQuery keydown() method

jQuery keydown() method


Use the jQuery keydown() method to fire the keydown event i.e. an event gets fired when a keyboard key is pressed down.


The following is the syntax,

The following is the parameter for the keydown method,

  • func: When the keydown event is fired, this function runs. This is an optional parameter.


The following is the output,

On typing the values in the two input fields, the following is visible. The background color of the input fields will change,

jQuery hover() method
jQuery keypress() method
Studyopedia Editorial Staff
Studyopedia Editorial Staff

We work to create free tutorials for all.

No Comments

Post A Comment