Simulating "focus" and "blur" in jQuery .live() method...
Posted
by Jonathan Sampson
on Stack Overflow
See other posts from Stack Overflow
or by Jonathan Sampson
Published on 2009-07-29T10:33:25Z
Indexed on
2010/06/03
3:44 UTC
Read the original article
Hit count: 285
Update: As of jQuery 1.4, $.live()
now supports focusin and focusout events.
jQuery currently1 doesn't support "blur" or "focus" as arguments for the $.live() method. What type of work-around could I implement to achieve the following:
$("textarea")
.live("focus", function() { foo = "bar"; })
.live("blur", function() { foo = "fizz"; });
1. 07/29/2009, version 1.3.2
© Stack Overflow or respective owner