jquery: Why is this not working on Chrome?
<pre><code>&lt;script&gt; 
$(document).ready(function () {
    $('#enter').click(function() {
    $.post('setCookie.php');
    });     
});
&lt;/script&gt; 

&lt;div id="enter"&gt; 
    &lt;a href="http://www.mydomain.com"&gt;Enter&lt;/a&gt; 
&lt;/div&gt; 
</code></pre>

<p>When clicking enter, it is supposed to go to mydomain.com and also set a cookie. It is working in Firefox, but not IE or Chrome. Any ideas?</p>
