I am creating a dialog like in this page:
http://jqueryui.com/demos/dialog/#modal-confirmation
(click view source)
on the bottom is the div that g
You can try the following it works for me:
$("#form-dialog").dialog("close");