What is the best way to determine if a webpage is jquery enabled? Using jquery itself if that's the best way to determine it.
if(jQuery) //jquery object exists
jQuery isn't magic - it's essentially just a big object. You can check for it like you would any other object.
Same thing to ensure libraries within jQuery are loaded:
if(jQuery.DatePicker) //lib exists
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