SyntaxFix
Write A Post
Hire A Developer
Questions
If you read the docs.
$('#mydialog').dialog('isOpen')
This method returns a Boolean (true or false), not a jQuery object.