Easy Tutorial
❮ Sel Previous Next Event Currenttarget ❯

jQuery mouseup() Method

jQuery Event Methods

Example

Release the left mouse button over a <div> element to insert some text:


Definition and Usage

The mouseup event occurs when the mouse pointer is over an element and the left mouse button is released.

The mouseup() method triggers the mouseup event, or attaches a function to run when a mouseup event occurs.

Tip: This method is often used together with the mousedown() method.


Syntax

Trigger the mouseup event for the selected elements:

Attach a function to the mouseup event:

Parameter Description
function Optional. Specifies the function to run when the mouseup event is triggered.

jQuery Event Methods

❮ Sel Previous Next Event Currenttarget ❯