How to close opened popup when it opens based on condition.
It looks very strange but I have requirement that based on some condition, if it becomes true popup should automatically close, How to do that?
I had return .dialog("close")
on document.ready
event but it is not working. Any idea?
UPDATE
I found problem is there actually popup is close but again after completing ready event it is opened again. Any help?