title: Why does $(document).ready(function()... not work in this example?
body: <p>Why does <strong>$(document).ready(function()</strong> not work in the following example?</p>
  
  <p>If I take it out, the other jQuery statement works.</p>
  
  <p><a href="https://i.stack.imgur.com/Bog8i.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bog8i.jpg" alt="alt text"></a>
  </p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  
      &lt;head&gt;
          &lt;meta http-equiv="content-type" content="text/html;charset=utf-8"/&gt;
          &lt;title&gt;Text Page&lt;/title&gt;
          &lt;script type="text/javascript" src="http://www.google.com/jsapi"&gt;&lt;/script&gt;
  
          &lt;script type="text/javascript"&gt;
              google.load("jquery", "1.3.2");
  
              $(document).ready(function() {
                  $("p").css("background-color","green");
              });
  
              function highlightIt() {
                  $("p").css("background-color","yellow");
              }
          &lt;/script&gt;       
  
  
      &lt;/head&gt;
  
  &lt;body&gt;
  
      &lt;p&gt;this is a test&lt;/p&gt;
  
      &lt;form action=""&gt;
          &lt;div&gt;
              &lt;input type="button" value="highlight it" onclick="highlightIt()" /&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>