Last active
February 6, 2022 08:55
-
-
Save aobasar/673dffb08a8733d949e1 to your computer and use it in GitHub Desktop.
How to check what version of jQuery is loaded?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
if (typeof jQuery == 'undefined') { | |
// jQuery is not loaded | |
alert('No jQuery'); | |
} else { | |
alert(jQuery.fn.jquery); | |
} | |
</script> | |
or | |
// add a bookmark to your Bookmark tabs and copy this code in URL. Name it jQueryVersionCheck if you want. | |
javascript:(function(){ if (typeof jQuery == 'undefined') { alert('No jQuery'); } else { alert(jQuery.fn.jquery); } })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment