Have a look at the hover() function it does exactly what you are looking
for.

David Dexter   |  brilliantlemming.com  |  Brentwood, CA  |  310.414.0949

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Josh Nathanson
Sent: Tuesday, March 27, 2007 2:41 PM
To: jQuery Discussion.
Subject: [jQuery] bind two events to same function

What is the syntax to bind two events to the same function?

I want to do something like

$("[EMAIL PROTECTED]").bind("mouseover,mouseout", function() {
stuff here
});

But it doesn't work.  TIA

-- Josh


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to