Reputation: 243
So I got three pieces of code to load stuff into div and do other things. But it doesn't work with Internet Explorer, I checked IE11 console and that's what I got
SCRIPT5009: '$' is undefined
That's odd, in every other browser it works fine, I tried to google it but didn't find any solution to this.
Here's my jQuery:
<script type="text/javascript">
$('#description').load('descr/portDefault.htm');
$('#portNav').load('menus/default.htm');
@edit
I guess I forgot to put the entire code, here it is: http://pastebin.com/xCL1e7Fh This html is an iframe in another html file if that makes a difference.
Upvotes: 1
Views: 12981
Reputation: 453
In my case I thought I had the fix with the compatability set in the meta tag.
<meta http-equiv="X-UA-Compatible" content="IE=edge;chrome=1" />
It worked, but that triggered me to check compatablity settting in IE11. For a previous project I had added localhost to the list in the Compatability View Settings.
Cleared the list and it works well now (without the meta tag).
Upvotes: 4