jQuery keyup() method

Definition

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

Syntax

The following is the syntax,

The following is the parameter for the keyup method,

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

Example

The following is the output,

The background color will change on pressing any key. On keyup, the color will change again.

jQuery keypress() method
jQuery mousedown() method
Studyopedia Editorial Staff
contact@studyopedia.com

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading