[jQuery] How to bind a hover event?

[jQuery] How to bind a hover event?

Can't you just use the hover function?
$(this).hover(functionA,functionB);
- David Dexter
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On
Behalf Of Daniel Hofstetter
Sent: Wednesday, March 14, 2007 7:37 AM
To: discuss@jquery.com
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
discuss@jquery.com
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



























    • Topic Participants

    • david