1

Everything works fine in Chrome, Firefox, and newer version of IE. However this is for Govt Contract and they are stuck with IE8.

I'm getting error

Object doesn't support property or method 'on' File: bootstrap.min.js, Line: 6, Column: 1434

I have already tried including html5shiv.js and respond.min.js, and all my style sheets are local. My <div class="collapse navbar-collapse"> does not display at all in IE8 but works fine in everything else.

I have also added meta tags below

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

this is for an asp.net application..

9
  • What version of bootstrap? What version of jQuery?
    – gen_Eric
    Apr 14, 2014 at 14:57
  • bootstrap v3.1.1 jQuery -1.4.2 Apr 14, 2014 at 14:58
  • What about jQuery? Which version? If you need to support IE8, you need to use the 1.x series (not the 2.x series).
    – gen_Eric
    Apr 14, 2014 at 14:59
  • 1
    Bootstrap 3.1.1 doesn't work with jQuery 1.4.2.
    – gen_Eric
    Apr 14, 2014 at 15:03
  • its jQuery version 1.4.2 Rocket Apr 14, 2014 at 15:04

2 Answers 2

2

That's because .on was added in 1.7.

And just so you know, the IE-compatible jQuery is already v1.11. Why in the world are you using v1.4?

0
0

Answer was as Rocket Hazmat Answered

In order to use Bootstrap 3.1.1, you need at least jQuery 1.9 (see github.com/twbs/bootstrap/blob/v3.1.1/bower.json) – Rocket Hazmat

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.