[jQuery] Re: How do i group events?

2007-08-24 Thread Herr M.
if you mean adding more than one event to an element, just add the next event the same way as the first: $("#myElem").click(function(){ alert("Event 1"); }); $("#myElem").click(function(){ alert("Event 2"); }); This will alert first "Event 1" and then "Event 2". /Anders On 23 Aug, 16:35

[jQuery] Re: How do i group events?

2007-08-23 Thread Glen Lipka
Not exactly sure what you are trying to do. Are you trying to have 2 separate click events, like this: http://www.commadot.com/jquery/events/multipleEvents.htm Or are you trying to unbind the original event? Like this? $("p").unbind( "click" ) Or something else? Glen On 8/23/07, Estevão Lucas <