Seems like this is an easy one, but I'm not having luck.

Currently I do this.

if( ! $("#widget-id").hasClass("ui-dialog-content") ) {

   // setup dialog and do other expensive stuff

}

But of course that depends on the CSS class names used.  Is there a
better way, using only the public API?

Thanks.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to