how do close modal form from another page

前端 未结 4 677
旧巷少年郎
旧巷少年郎 2021-01-14 18:44
 $(document).ready(function()
 {
     $(\"#create-user\").button().click(function()
     {
         $(\"#dialog-form\").load(\'test.html\').dialog({ modal:true, });          


        
4条回答
  •  有刺的猬
    2021-01-14 19:12

    SimpleModal will automatically bind the close function (using the onclick event) to any element inside the dialog with the simplemodal-close class.

    In addition, you can programmatically close the currently opened dialog by calling $.modal.close();

    This means: in your closeWindow()-function, you could simply enter the line:

     $.modal.close();
    

提交回复
热议问题