jQuery - Imitate Click
<p>I want to imitate an anchor click when a user clicks on the containing <code>&lt;TD&gt;</code> but having problems.</p>

<p>This is the JS part:</p>

<pre><code>$('contactTab').click(function() {
    $('contactTabLink').trigger("click");
});
</code></pre>

<p>And this is the HTML part:</p>

<pre><code>&lt;td class="previewTabs" id="contactTab"&gt;
&lt;a class="previewTabLink" id="contactTabLink" rel="#contactOverlay"&gt;CONTACT&lt;/a&gt;
&lt;/td&gt;
</code></pre>

<p>When somebody clicks the <code>&lt;TD&gt;</code> contactTab, it should trigger a click event on <code>&lt;A&gt;</code> contactTabLink which then launches an Overlay. My problem is that the JS function with click listener is NOT firing at all.</p>

<p>Can anybody see where I am going wrong?</p>

<p>EDIT 1:</p>

<p>I have changed the selectors to have #'s but it still won't fire the function.</p>
