SyntaxFix
Write A Post
Hire A Developer
Questions
If the code of the previous posts doesn't work, give this a try:
$("a.ui-dialog-titlebar-close")[0].click();