jQuery keypress() method

jQuery keypress() method


Use the jQuery keypress() method to fire the keypress event i.e. when a keyboard key is pressed.


The following is the syntax,

The following is the parameter for the keypress method,

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


The following is the output,

Press any key to change the background,

jQuery keydown() method
jQuery keyup() method
Studyopedia Editorial Staff
Studyopedia Editorial Staff
[email protected]

We work to create free tutorials for all.

No Comments

Post A Comment