[jQuery] Reference to the element that triggered the event (Karl Rudd)

[jQuery] Reference to the element that triggered the event (Karl Rudd)

Thanks Karl.
However, that doesn't give me what I'm after...:)
A little more explanation. This is my pseudo-HTML
<li class="selectable">
    content content content
    <a href="##1">some link</a>
    content content content
    content content content
    <img src="##" />
    content content content
    content content content
    content content content
    content content content
    <a href="##1">some link</a>
</li>
Clicking on any element within this block will trigger the event. But I want
to know if the <A> or <IMG> elements were clicked.
Your suggestion returns me "li" regardless of where I click.
Thanks again.
John
>Date: Tue, 13 Mar 2007 11:45:11 +1100
>From: "Karl Rudd" <karl.rudd@gmail.com>
>Subject: Re: [jQuery] Reference to the element that triggered the
>event
>
>To: "jQuery Discussion." <discuss@jquery.com>
>Message-ID:
><26aff3d20703121745v3a71ecd4y8c08808abf5e108b@mail.gmail.com>
>Content-Type: text/plain; charset=UTF-8; format=flowed
>
>You don't actually need the * at the start of the selector, it's
>implicitly there.
>
>In the click function, to work out what has been clicked, you can do:
>
>var tag = this.nodeName.toLowerCase();
>
>Tag should be the tag name.
>
>Karl Rudd
>
>On 3/13/07, John Cotton <jc@jda-multimedia.co.uk>