Hii,
I have a problem in using dialog box in jquery.At a point of time an event may trigger that displays a dialog box,before this dialog box closes, another event may trigger which displays a new dialog box.
Till now I am closing the dialog box explicitly before another dialog box opens by using destroy for each id.
if($('#'+errorId).dialog("isOpen"))
$('#'+errorId).dialog("destroy");
if($('#'+successId).dialog("isOpen"))
$('#'+successId).dialog("destroy");
What I need is to close all dialog boxes at one go instead of one at a time.
Is this kind of solution possible?if Yes please let me know.
Thanks in Advance.
With Regards
Phani Kumar
Put a class X say ‘dialog’ on each of the containers opened as a dialog and
then call $
('.dialog').dialog('close')