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
As of jQuery UI 1.11, widgets can be directly tested for via the instance method:
instance
var hasProgressbar = ($(element).progressbar("instance") !== undefined);
Documentation: http://api.jqueryui.com/jQuery.widget/#method-instance