are there something like isClicked in jquery?
<p>I have a div element, with img element in it.</p>

<p><code>onclick</code> of <code>div</code> i make one function, and <code>onclick</code> on <code>img</code> - another. but when i click on <code>img</code> it make the first function too, because the <code>img</code> is in <code>div</code> element.
so, i think, that if there were something like <code>isClicked</code>, onclick of div i can just verify, if img is <strong>Not</strong> clicked ...</p>

<p>(i can write a logic, and verify it by so,for example onclick of img i can add a class to somebody... but maybe there is a function for it?)</p>

<p>Thanks</p>

<p>Update:</p>

<pre><code>&lt;div class="left_expended" style="position: relative;"&gt;
    Լեզուներ
    &lt;img src="images/new_page.gif" id="new_lang" title="Լեզու ավելացնել" /&gt;
&lt;/div&gt;
</code></pre>

<p>and jquery</p>

<pre><code>$(".left_expended").live('click', function(){
            $(this).addClass("left_collapsed");
            $(this).removeClass("left_expended");
            $(this).next("div .container").slideUp(400);
        });

        $("#new_lang").click(function()
        {
            alert("something");
        });
</code></pre>

<p>onclick of img it makes first function too.</p>
