Can't you just use the hover function? $(this).hover(functionA,functionB);
- David Dexter -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Hofstetter Sent: Wednesday, March 14, 2007 7:37 AM To: [email protected] Subject: [jQuery] How to bind a hover event? Hi all, Somehow I can't figure out how to bind a hover event to an element. At the moment I am using the following workaround: $(this).bind('mouseover', functionA); $(this).bind('mouseout', functionB); But that's not that elegant imho. So, does someone know a better solution? Thanks, daniel -- Daniel Hofstetter http://cakebaker.42dh.com _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/ _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
