[jQuery] bind two events to same function

[jQuery] bind two events to same function

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: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] 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
$("input[@type=submit]").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/























    • Topic Participants

    • david