jQuery - keyup() method

Example

Change the text field color when the key is pressed:

$("input").keyup(function(){
  $("input").css("background-color","#D6D6FF");
});

আপনার নিজেই প্রয়াস করুন

Definition and Usage

The complete key press process is divided into two parts, the key is pressed, and then the key is released and reset。

When a button is released, a keyup event occurs. It occurs on the currently focused element。

The keyup() method triggers the keyup event, or specifies the function to be executed when the keyup event occurs。

Note:If set on a document element, the event will occur regardless of whether the element is focused or not。

Tip:Please use .which propertyTo determine which key is pressed(আপনার নিজেই প্রয়াস করুন)。

Trigger keyup event

Syntax

$(selector).keyup()

আপনার নিজেই প্রয়াস করুন

Function কে keyup ইভেন্টের সাথে বাঁধা দিতে

Syntax

$(selector).keyup(function)
Parameter Description
function অপশনাল। কীবোর্ড ইভেন্ট keyup ঘটার সময় চালু হওয়া ফাংশন নির্দিষ্ট করে

আপনার নিজেই প্রয়াস করুন