Trigger OnClick in anchor tag
<p>How can i use trigger() in jquery to emulate onclick attribute of a anchor tag:</p>

<pre><code>&lt;a id="anc" href="#" onclick="someFunction()"&gt; some text &lt;/a&gt;
</code></pre>

<p>here if i use </p>

<pre><code>$("anc").trigger('click');
</code></pre>

<p>its not working </p>
