jQuery focusout() method

jQuery focusout() method


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().


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.


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
Studyopedia Editorial Staff

We work to create free tutorials for all.

No Comments

Post A Comment