Close dialog on click (anywhere)

前端 未结 10 1145
旧时难觅i
旧时难觅i 2020-11-30 23:34

Is there a default option to close a jQuery dialog by clicking somewhere on the screen instead of the close icon?

10条回答
  •  旧巷少年郎
    2020-12-01 00:22

    If the code of the previous posts doesn't work, give this a try:

    $("a.ui-dialog-titlebar-close")[0].click();
    

提交回复
热议问题