jQuery blur() Method
jQuery blur() Method
The blur event is used to occur when an element loses focus. The blur() method triggers the blur event. We can attach a function when a blur event occurs. It is sometimes used together with the focus() method.
Syntax:-
Its syntax is:- $(selector).blur(function)
Further Explanation:-
Parameter | Description |
---|---|
function | Optional. Specifies the function to run when the blur event occurs |