How to tell if any jquery dialog happens to be open? [duplicate]
问题 This question already has answers here : Detect if a jQuery UI dialog box is open (5 answers) Closed 3 years ago . Looking for a general case solution to determine if any jquery dialog (there are multiple) is currently open. Have tried: $(".ui-dialog-content").dialog("isOpen") === true $(".ui-dialog").dialog("isOpen") == true $(document).dialog("isOpen") == true $("*").dialog('isOpen') == true without any success. I expected ".ui-dialog-content" to work, since I can apparently close any open