Detect if a jQuery UI dialog box is open January 7, 2023 by Tarik If you read the docs. $('#mydialog').dialog('isOpen') This method returns a Boolean (true or false), not a jQuery object.