event.preventDefault(); when trigger is parent div not link?
<p>I have a div as a trigger for some jQuery. The div contains a link. Sometimes clicking the div will also mean clicking the link and I need to stop the link's behaviour. </p>

<p>I believe this can be done with event.preventDefault(); but the following doesn't work in IE8. Im assuming this is because the trigger is a parent div not the actual link, but how do I fix this? Thanks </p>

<pre><code>$('div#myDiv').click(function(){
    event.preventDefault();
    //other js here
});


&lt;div id="myDiv"&gt;
   &lt;a href="#"&gt;Link&lt;/a&gt;
&lt;/div&gt;
</code></pre>
