Skip to content

Instantly share code, notes, and snippets.

@aobasar
Last active February 6, 2022 08:55
Show Gist options
  • Save aobasar/673dffb08a8733d949e1 to your computer and use it in GitHub Desktop.
Save aobasar/673dffb08a8733d949e1 to your computer and use it in GitHub Desktop.
How to check what version of jQuery is loaded?
<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