Sometimes we need to find the version of the jQuery library, that is being used in the code or on a website.

Find jQuery Version
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.

Get latest blog posts in your Mail ! Don't worry, I won't spam your Inbox, I hate spams too ! ! !