-1

I have certain functionality that I want to run only if respondent is using IE 9 or above, please suggest how can I do this in jQuery.

Thanks

Vaibhav
  • 105
  • 1
  • 8

2 Answers2

2

the feature to detect browser info through jquery by using $.browser has been deprecated(in version 1.3) and removed(in version 1.9) .However you can simply use html to do this.

<!--[if gt IE 8]>
  <script type="text/javascript">
    //script for ie9 and above
  </script>
<![endif]-->
Milind Anantwar
  • 81,290
  • 25
  • 94
  • 125
0

Good practice is to use feature detection instead of browser detection

In this way you look if the browser can handle the specific case, and then use that functionality

BobbyTables
  • 4,481
  • 1
  • 31
  • 39