javascript - Deselect/Unfocus input field using JQuery -
possible duplicate:
jquery unfocus
is there way deselect/unfocus input field using jquery? $("input#name").select().focus();
in reverse?
.blur();
reference: http://api.jquery.com/blur/
bind event handler "blur" javascript event, or trigger event on element.
...this method shortcut for...
.trigger( "blur" )
...the
blur
event sent element when loses focus. originally, event applicable form elements, such<input>
. in recent browsers, domain of event has been extended include element types. element can lose focus via keyboard commands, such tab key, or mouse clicks elsewhere on page...
Comments
Post a Comment