Dialog window is not working after clicking the radio button in jquery
<p>I have three radio buttons, this has been converted as a button set using jquery ui.On clicking each radio button the table contents will be generated which will contain the div name"month_body" on first radio button click.</p>

<p>So what is the issue?</p>

<p>When i refresh the page the first radio button will be clicked , so the contents with the div"month_body" can able to trigger the dialog. But when i try to switch the radio button and come back to radio button1 i could not able to trigger the dialog.</p>

<p>Is there any reason behind this?</p>

<pre><code>    $(document).ready(function () {

LoadCurrentView();//loads the current view
$("#options &gt; input").each(function () {
    $(this).click(function () {
        viewid = $(this).attr("viewId");
        LoadValues(viewid, 0);
    });
});


$("#options").buttonset();


$("#startTime,#endTime").append(GetOptionTimes());
$("#startDate").datepicker();
$("#endDate").datepicker();
$("#datepicker").datepicker({ inline: true });

$("div.month_body").bind('click', function () {
    $(".eventWindow").dialog(
        {
            width: 800,
            height: 500,
            modal: true
        }
        );
});
</code></pre>

<p>});</p>
