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, "Estevão Lucas" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a 'a' element with the onclick event. I wanna use this event with
> another.
>
> Something like this:
>
> $( 'a' ).click( function()
> {
>      // if this element already has a event
>      this.click && this.click();
>
>     $( this ).css( "border", "1px solid red" );
>
> });
>
> Estevão Lucas

Reply via email to