Recently I ran into a mysterious problem that IE (6-8) is keeping throwing me an error. I don\'t know if this is the problem, but I think it is.
Open up the F12 deve
The latest jQuery (1.7.1) with IE10 and IE9 does not produce such an error for me.
As a side note; If you wish to execute something when the dom is ready; Try this way;
$(function(){
alert("Wont able to see me");
});
I believe this is the standard convention for attaching a function to domready event.
Reference: jQuery Documentation