click on div using jquery error
<p>I have this <code>html</code>:</p>

<pre><code>&lt;div class="divHolder"&gt;
   &lt;a href="./"&gt;&lt;img src="./images/image6.jpg"/&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div class="divHolder"&gt;
   &lt;a href="./IT.aspx"&gt;&lt;img src="./images/image7.jpg"/&gt;&lt;/a&gt;
&lt;/div&gt;
</code></pre>

<p>In <code>javascript</code> I have:</p>

<pre><code>$('.divHolder').click(function () {

    var link = $(this).find("a").attr("href");

    if (link != null) {
         location.href = link;
    }
});
</code></pre>

<p>However, every time I click on a div, the href of the div is always the last one: for example in this case is: IT.aspx.</p>

<p>What did I do wrong? could you please help?</p>

<p>Thanks in advance.</p>
