My post submits the form and displays the dialog after it successfully submits everything. I am curious as how to change the event when this dialog is closed out by the X in the top corner to close something else as well such as another dialog.
$.post("test.php", $("#payment-form").serialize(),function(){
$.mobile.changePage('#successfulPurchase');
});
I want to do
$("#subscribePage").dialog('close');
when the successfulPurchase dialog is closed out