title: jquery IE8 $(document).ready "object expected" error
body: <p>I'm having a problem with IE8 throwing an "object expected" error when loading a page with the jquery command <code>$(document).ready()</code>.  I've gone through all the other posts I can find here on SO, and none of the solutions seem to work.</p>
  
  <p>To troubleshoot, I created the following html, which runs fine in Firefox and Chrome, but produces an "object expected" error at the <code>$(document).ready</code> line. So far:</p>
  
  <ol>
  <li>I've confirmed it is reaching the google jquery file - and tried referencing a local jquery.js file - same result.</li>
  <li>Tried placing the script in the <code>&lt;head&gt;</code> (I've included it in the body to recreate the situation on the site I'm developing on)</li>
  <li>I've also tried this with <code>jQuery(document)</code> instead of <code>$</code> - same result</li>
  <li>Tried including: <code>var $j=jQuery.noConflict();</code> and including <code>$j(document)</code>, getting a 'jQuery is undefined' error on the <code>$j</code> declaration.</li>
  </ol>
  
  <p>What am I missing?  ANY help is appreciated!  Thanks!</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;script type="application/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;script type="text/javascript"&gt;
          $(document).ready(function(){
      alert("WORKING!");
      });
  
  &lt;/script&gt;
  
  &lt;div id="test"&gt;
  &lt;/div&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>