Find JQuery Version
Sometimes we need to find the version of the jQuery library, that is being used in the code or on a website. So which is the easy way to Find JQuery Version ?
jQuery object directly doesn’t provide the version property. At first sight its difficult find but you can easily get it with the following code.
var jQueryVersion = $.fn.jquery;
So jQuery keeps the version numbering and details in the $.fn object of the jQuery. It returns the jQuery version as a string, eg. “2.1.0”.
Its a very small code, but useful when you need to find the version of the jQuery that is being used on the website.
Just try it and see if you can find jQuery version with this.
Leave a Reply