Jquery accordion
<p>I have set up jQuery accordion in my page as</p>

<pre><code>$(document).ready(function() { 
        $("#MGH").accordion('activate', 1);
    });
</code></pre>

<p>Now inside this div I have one button onclick of which I will validate and show some alert.
My problem is whenever I am clicking ok in the alert this accordion is getting fired.How to prevent this?</p>
