Works perfectly, thanks.
On Sep 21, 3:52 pm, Cheng Chi <[email protected]> wrote: > $('#mydialog').is(':data(dialog)') > > > > On Mon, Sep 21, 2009 at 1:41 PM, Russ <[email protected]> wrote: > > > Is there a way to check if a dialog has been initialised or not? i > > just want to check if it exists and if it does then open it, otherwise > > create one etc. > > > eg something like this (which dosent work); > > > if ($('#mydialog').is('dialog') { > > $('#mydialog').dialog('open'); > > }else { > > $('#mydialog').dialog({ > > autoOpen: false, > > modal: true, > > draggable: true, > > width: 470, > > height: 'auto', > > resizable: false, > > draggable: false, > > bgiframe: true > > }); > > }- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
