jQuery focusout() method

Definition

Trigger an event when an element loses focus, using the jQuery focusout() method. It triggers even if any child element lose focus.

Note: The focusout() method is used often along with focusin().

Syntax

The following is the syntax,

The following is the parameter used in the jQuery focusout() method,

  • func: When event occur, this function runs. It is an optional parameter.

Example

The following is the output,

Click inside the input field to get focus,

Click outside the input field to get focus,

jQuery focusin() method
jQuery hover() method
Studyopedia Editorial Staff
contact@studyopedia.com

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading