How to activate <a> event by clicking on another element
<pre><code>    &lt;div class="imgtumb"&gt;&lt;img src="..."&gt;&lt;/div&gt;
    &lt;a href="toBigImg" class="imgtarget"&gt;sometext&lt;/a&gt;

    &lt;script&gt;
        $(document).ready(function() {
            $('div.imgtumb img').click(function() {
            $('a.imgtarget').click();
            });
        });
    &lt;/script&gt;
</code></pre>

<p>The link not work (dont open a big image). What i do wrong?</p>

<p>----Edited----
Thank you guys, but .trigger() is not working too. I resolved this problem something like this:</p>

<pre><code>$(document).ready(function() {
            $('div.imgtumb img').click(function() {
            window.location.href = $('a.imgtarget').attr("href");
            });
        });
</code></pre>

<p>----Edited 2---
Question which explained why <a href="http://stackoverflow.com/questions/1694595/can-i-call-jquery-click-to-follow-an-a-link-if-i-havent-bound-an-event-hand">.click() is not working with a tag</a></p>
