jQuery keyup() method

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
Studyopedia Editorial Staff
[email protected]

We work to create free tutorials for all.

No Comments

Post A Comment