I created a div with an id "example" and the message for the modal box inside of it. The issue I am having is that the iframe with id loaded once loaded is not closing the modal box. Is there anything I am missing here?
$(document).ready(function(){
$("#example").dialog({modal: true});
});
$('#loaded').load(function() {
$("#example").dialog("close");
});