jQuery mousedown() Method
jQuery mousedown() Method
The mousedown event is used to occur when the mouse button is pressed down over the selected element. The mousedown() function triggers the mousedown event. We can attach a function to this event. It is used together with mouseup() method.
Syntax:-
Its syntax is:- $(selector).mousedown(function)
Further Explanation:-
Parameter | Description |
---|---|
function | Optional. Specifies the function to run when the mousedown event is triggered |