jQuery.support that will pass IE10+ but not IE9-?

810 Views Asked by At

Are there any jQuery.support options that will return true on IE10 as well as Firefox and Webkit browsers, but return false on IE9 and lower?

The jquery page for this option seems woefully out of date. http://api.jquery.com/jQuery.support/

If someone has another suggestions I'd be open to it. (Using jQuery 1.10)

1

There are 1 best solutions below

2
On

If you just want browser version detection:

$.browser.msie
$.browser.version

Note that in general this is a bad idea, and you should be coding to features that are available in whatever browser you're using. But if you have some specific reason, use these.