function doSuperCoolStuff(evt) { // do super cool stuff... }
$('[EMAIL PROTECTED]"submit"]').bind("mouseover", doSuperCoolStuff).bind("mouseout", doSuperCoolStuff); On 3/27/07, Josh Nathanson <[EMAIL PROTECTED]> wrote:
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/
-- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/