This is a generic question so not really any code to show in this question.
I am having a problem getting a particular jquery script to run in IE9 (indeed any version of IE)
Most annoyingly it appears to be slightly hit or miss which is making debugging this very difficult.
In FF and Chrome it runs completely without issue.
But in IE the script will only run if you press F5 to refresh.
Obviously I am using
$("document").ready(function() {
alert("start control script");
// lots more code here
};
By observation it appears that once I have run the script once if I subsequently logout and log back in all is well. But If I close the browser completely I am back to needing to press F5 to get the script started. This is only happening in IE.
I imagine that it works once I have refreshed and logged out due to some kind of caching which is lost when I close the browser completely.
Any thoughts welcomed.
You have written it incorrectly,
documentis a global object & does not need quotes around it.Notice the lack of quotes around the word
document& the missing parenthesis at the end.