Hello,
I have been trying to do the follow:
- Form gets showed inside jQuery Dialog
 - When form gets submitted, jQuery dialog should close
 
I am trying the following code:
    $('#RegisterDialog').dialog({
               autoOpen: false,
                closeOnEscape: false,
                position: 'center',
                modal: true,
                width: 600,
                buttons: {
                    "Cancel account registration": function() { 
                        $(this).dialog("close"); 
                        window.location = 'http://localhost/';
                    } 
                }
});
$(".Register").click(function() {
           $('#RegisterDialog').dialog("close"); 
           $('#RegisterDialog').hide();
});
However, it hides and pops back up again. I also tried 'autoClose: false'.
Any help please?