How can I check to see if a jQuery UI plugin is attached to an element? For example, if I load up the .sortable widget, how can its presence be determined?
The purpo
Just call an instance of sortable, if return undefined, then is not loaded
if (typeof $("ul.sortable").sortable('instance') != 'undefined') { //$.ui.sortable is loaded and called } else { //call sortable }