Submit form with jQuery modal dialog
<p>As per our project requirement we have developed the jQuery dialog and added 3 buttons </p>

<p>YES , NO and CANCEL</p>

<p>On Yes Button we required to submit the form 
but the form is not submitted 
Nothing Happen to YES and NO</p>

<p>code is as below</p>

<pre><code> $("#dialog-NurseTeam").dialog({
        autoOpen: false,
        width: 430,
        resizable: false,
        title: 'Confirmation',
        modal: true,
        buttons:[ {
            "text": "Yes",
            "click": function () {
              debugger; 
              document.getElementById("IsNurseTeamChanged").checked=true;
              document.getElementById("hdnCancelChecked").value="Yes"; 
              $(this).dialog("close");
               $form = $('#PatientNewVisitForm');
              $form.submit();

              }

            },
            {
            "text": "No",
            "click": function () {
            document.getElementById("IsNurseTeamChanged").checked=false;
            document.getElementById("hdnCancelChecked").value="No";
                $(this).dialog("close");

            }
        },
            {
            "text": "Cancel",
            "click": function () {
            document.getElementById("IsNurseTeamChanged").checked=false;
            document.getElementById("hdnCancelChecked").value="Cancel";
                $(this).dialog("close");

            } }]


    });
</code></pre>

<p>Please help me out to resolve this problem</p>
