Possible Duplicate:
What’s the replacement for $.browser
I rely on jQuery’s deprecated $.browser functionality to apply quirk fixes for certain browsers. Example:
if ($.browser.msie && $.browser.version < 9) {
This functionality was removed in jQuery 1.9 so I’m looking for an alternative. jQuery suggests using Modernizr for feature detection, but that plugin doesn’t appear to cover the functionality I need. What’s the (un)official replacement for this functionality?
The
jQuery.browser()method has been deprecated since jQuery 1.3 and is removed in 1.9From jQuery API documentation:
For a more advanced feature detection you shoul yse Modernizr as @Pointy suggested.