Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery is undefined exception in IE11

In IE11 I get this exception

'jQuery' is undefined

I do not get this error in any other browser. The code that is causing the problem is

jQuery(document).ready(function(){

Any one know why is that and what might be causing the problem?

like image 310
user2307211 Avatar asked Nov 26 '13 10:11

user2307211


1 Answers

I came across the same issue in Internet Explorer 11. It occurs due to compatibility mode is auto set to Internet Explorer 7. Image is attached.

I use jQuery 2.2 in my project. It seems to be that only IE9 and upwards support for this version.

Internet Explorer Compatibility List

To force the compatibility mode use below meta tag.

<meta http-equiv="X-UA-Compatible" content="IE=11" >
like image 62
Don D Avatar answered Oct 13 '22 00:10

Don D