jQuery Intro

jQuery Intro Quiz

jQuery Intro Exercise

jQuery Basic

jQuery Basic Quiz

jQuery Basic Exercise

jQuery Advance

jQuery Advance Quiz

jQuery Advance Exercise

jQuery Selectors

jQuery Effects

jQuery Events

jQuery Methods and Properties

jQuery Traversing

jQuery CSS and HTML Methods

jQuery keypress() Method

jQuery keypress() Method



The keypress event is used to occur when a keyboard key is pressed down. It triggers the keypress event and we can attach a function to it.


Events order related to keypress event are:-


  1. keydown - The key is on its way down
  2. keypress - The key is pressed down
  3. keyup - The key is released




Its syntax is:- $(selector).keypress(function)


Further Explanation:-


Parameter Description
function Optional. Specifies the function to run when the keypress event is triggered

Code Explanation

All Tutorials related to jQuery Events

All Sections related to jQuery