jQuery Focus events


Trigger focus


$("Element").focus()

Trigger on each matching element to get focus events.


$("Element").focus(function)

Events are fired when the focus is reached, either by the mouse behavior or by the tab key navigation triggering behavior, and bound to a processing method.


Lose focus


$("Element").blur()

Triggers every match element to lose focus events.


$("Element").blur(function)

The event fires when the element loses focus, either by mouse behavior or by tabbing away, and binding a handle.


Change focus


$("Element").change()

Trigger events on every match element change.


$("Element").change(function)

Bind a handler to the change event of each matching element.




Copyright 2014-2017 by DeveloperTut.com. All Rights Reserved.
TwitterGoogle+Facebook