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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -