Created
June 1, 2018 00:39
-
-
Save csharpforevermore/c1aace47e6d5bbdf4b69a9ded8b2ac5b to your computer and use it in GitHub Desktop.
Verify that jQuery is loaded and display the version number
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
if (typeof jQuery != 'undefined') { | |
// jQuery is loaded => print the version | |
alert(jQuery.fn.jquery); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment