I know I can check if jQuery UI core is loaded with jQuery.ui
, but how to check if a widget (draggable
) is loaded, I am using typeof($('something').draggable) == 'function'
, is any better way to do this?
You can try like this:
if (typeof(jQuery.ui.draggable) != 'undefined'){
// UI draggable is loaded
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With