I have a page that executes a .get on the change of an HTML select:
$.get(link, function (data) {
$("#divonpage").html(data);
});
The data obtained from the link contains a
$(document).ready(function () {
...code here...
});
in order to do things upon completion of the .get
On every browser except IE, this works with no problems.
With IE (even the latest version), this fails with a "$ is undefined" error, located at the $(document)
.
Apparently, all other browsers are able to use the jQuery loaded with the original page.
Thinking it may be a caching issue, I removed all headers that would prevent caching. This had no effect.
I am assuming that I will need to remove the $(document).ready
and put this code to execute after the .get
.
Any ideas?
I am using the latest version of jQuery, and I have tested older versions also.