jQuery Keyup() Method

The jQuery keyup() method triggers the event when keyboard key is released. Bind the event to input field on focus of the input element.

Syntax

The syntax of this method which are given below:-

Syntax to get the keyup event on an element
$(selector).keyup(function(){
   //add action here
});

Description of the Parameters

The description of the parameters are given below.

Parameter Name Description
selector The selector is used to select the input element in which keyup is occur on focus.

Examples of jQuery Keyup() Method

To get the value of input field on keyboard key is released on it, use the example given below.

Example 1

Test it Live

You may also like to read

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.