$(document).ready(function() { $(\"#create-user\").button().click(function() { $(\"#dialog-form\").load(\'test.html\').dialog({ modal:true, });
Sample.
HTML:
Close
Javascript:
This works. Good luck!