How to check what version of JQuery is loaded in browser
Sometimes we might want to know what version of jQuery a particular site is using. It is not always possible to know the version of jQuery we are using through the jQuery File name or reading the content of the files, specially when the jQuery is minimized.
Following snippet can tell us the version of jQuery loaded by a site.
Following snippet can tell us the version of jQuery loaded by a site.
if (typeof jQuery != 'undefined') {
// jQuery is loaded => print the version
alert(jQuery.fn.jquery);
}
Simply go to the console of the browser, once the webpage is loaded, and then type.
the above command on the console. It should display the version as an Alert.
Comments
Post a Comment