Ryan Brodie Ryan Brodie - 1 year ago 469
HTML Question

Deselect/Unfocus input field using JQuery

Possible Duplicate:

Jquery Unfocus

Is there a way to deselect/unfocus an input field using JQuery? Something like
but in reverse?

Answer Source


reference: http://api.jquery.com/blur/

Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.

...This method is a shortcut for... .trigger( "blur" )...

The blur event is sent to an element when it loses focus. Originally, this event was only applicable to form elements, such as <input>. In recent browsers, the domain of the event has been extended to include all element types. An element can lose focus via keyboard commands, such as the Tab key, or by mouse clicks elsewhere on the page...

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download