jQuery keydown()When you press a key on the keyboard, the keydown() event is occurred and once the keydown() event is occurred, it executes the function associated with keydown() method to run. The keydown() event is generally used with two other events.
Syntax: It triggers the keydown event for selected elements. It adds a function to the keydown event. Parameters of jQuery keydown() event
Example of jQuery keydown() eventLet's take an example to demonstrate jQuery keydown() event. Test it NowOutput: Write something:Note: If you write something in the above text box then the background color will be changed on keydown and keyup.
Next TopicjQuery keypress()
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week