Javatpoint Logo
Javatpoint Logo

jQuery keyup()

The jQuery keyup() event occurs when a keyboard button is released after pressing. This method is executed or attach a function to run when a keyup() event occurs.


It triggers the keyup event for selected elements.

It adds a function to the keyup event.

Parameters of jQuery keyup() event

Parameter Description
Function It is an optional parameter. It is executed itself when the keypress event is triggered.

Example of jQuery keyup() event

Let's take an example to demonstrate jQuery keyup() event.

Test it Now


Write something:

Note: If you write something in the above text box then the background color will be changed on keydown and keyup.

Let's Work Together!

Javatpoint is passionate to offer better content to the world. Please mail your contribution to We will show your name and create your user profile. You can contribute the following things:
  • Article on Any Topic (which is not available on Javatpoint)
  • Your Interview Experience on Company
  • Company Interview Questions with Answers
  • Recruitment Process of Company
  • Programs, and Algorithm
  • Videos
  • Test Paper
  • Improve Article

Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials