JQuery, starting with version 1.9, removed $.browser and $.browser.version and replaced it with $.support
JQuery, starting with version 1.9, removed $.browser and $.browser.version and replaced it with $.support. In the updated version 2.0, IE 6/7/8 will no longer be supported. Later, if the user needs to support IE 6/7/8, only jQuery 1.9 can be used. If you want to fully support IE and mix jQuery 1.9 and 2.0, the official solution is:
<!--[if9]> <script src='jquery-1.9.0.js'></ script><! [endif]--><!--[if9]> <script src='jquery-2.0.0.js' ></script><! [endif]-->
To determine the browser type:
$.browser.mozilla =/firefox/=/webkit/=/opera/=/msie/.test ( Navigator.userAgent.toLowerCase ());
The expression after the equal sign returns the True/false, which can be used directly to replace the original $.browser.msie. If you need to check if it is IE6, you can write this:
// Old if 7 > $.browser.version) {}// Newif ('undefined ' typeof
Check if it is IE 6-8:
If
JQuery 1.9 How to use $.support instead of $.browser