jQuery: Handling background/container click
<p>I have a big div, and a small button inside the div.</p>

<p>When the div is clicked, I want it to do something.<br>
When the button is clicked, I want it to do something else.</p>

<pre><code>$('#myDiv').click(OnDivClicked);
$('#myButton').click(OnButtonClicked);
</code></pre>

<p>Currently when the button is clicked, both OnDivClicked and OnButtonClicked are fired.</p>

<p>How do you prevent OnDivClicked getting fired when the button is clicked?</p>

<p>Thanks in advance.</p>
