YouTip LogoYouTip

Event Blur

# jQuery blur() Method [![Image 3: jQuery Event Methods](#) jQuery Event Methods](#) ## Example Add a function to the blur event. The blur event occurs when an field loses focus: $("input").blur(function(){ alert("The input field has lost focus"); }); [Try it Β»](#) * * * ## Definition and Usage The blur event occurs when an element loses focus. The blur() method triggers the blur event, or specifies a function to run when a blur event occurs. **Tip:** This method is often used together with the [focus()](#) method. * * * ## Syntax Trigger the blur event for the selected element: $(_selector_).blur() (#) Add a function to the blur event: $(_selector_).blur(_function_) (#) | Parameter | Description | | :--- | :--- | | _function_ | Optional. Specifies the function to run when the blur event occurs. | * * jQuery Event Methods](#)
← Event ChangeSel Attribute Prefix Value β†’