I\'m using jQuery and have some interactions with a jQuery UI where I need to get options. However there\'s a possibility that the jQuery UI function has not been applied yet t
According to this discussion, the recommended way to detect if a widget has been rendered on an element is as follows:
var hasWidget = $('selector').is(':ui-widgetname');