jQuery keydown() Event

Last Updated Jul 21, 2015, 12:00:06 PM

jQuery keypress() Event

jQuery keypress() event is used to bind an event handler to javascript “keypress” event when the user make a keypress on the keyboard


jQuery keypress() method behaviour can also be performed by on( "keypress", handler ) and jQuery trigger( "keypress" ). Basically jQuery keydown() event will be fired when browser register any keyboard event.

Here is an example on how to use jquery keypress() method.


In this example, the no.of times the event occurs will be shown as a result when user try to press the key on the keyboard.

jquery keypress() event

Try It Now

Other Advanced jQuery Events you might want to learn
jQuery Complete Events Reference

jQuery Events

jQuery Document Events

jQuery Keyboard Events

jQuery Mouse Events

Sources and Credits

The content and methods in the tutorial has been referred and updated with jQuery API and The jQuery Foundation

Last Updated Jul 21, 2015, 12:00:06 PM