This question already has an answer here:
- How can you detect the version of a browser? 23 answers
How do I determine the exact browser and version using JavaScript?
This question already has an answer here:
How do I determine the exact browser and version using JavaScript?
All the information about web browser is contained in navigator object. The name and version are there.
Source: javascript browser detection
You could use the jQuery library to detect the browser version.
Example:
jQuery.browser.version
However, this only makes sense if you are also using other functions of jQuery. Adding an entire library just to detect the browser seems like overkill to me.
More information: http://api.jquery.com/jQuery.browser/
(you have to scroll down a bit)