On 09/03/07, Abel Tamayo <[EMAIL PROTECTED]> wrote:
> Hi all. I'd like to know if there's a standard, easy way to determine with
> element triggered an event. I'm pretty sure there is, but can't find it in
> google. Maybe an atribute in the e parameter received by the function like:
>
> $("p").bind(
>   "click",
>   function(e){
>     console.log(e.TRIGGER); // This trigger attribute of the element e is
> the one that started the action.
>   }
> );

I thinks it is e.target. In the past you had to do target = e.target
|| e.srcElement (or something similar), but I think jQuery was changed
to prevent the need.

>
>
> So, is there an easy way?
>
> Thanks.
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

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

Reply via email to