title: "TypeError: $(...) is null" What's Going On?
body: <p>Firebug is giving the error:</p>
  
  <pre><code>TypeError: $(...) is null
  $('#menu img').hover(
  </code></pre>
  
  <p>I have no idea why. The seemingly problematic script is this which replaces an image when the cursor hovers over an image:</p>
  
  <pre><code>$(document).ready(function()
  {
      var storeNormalPath;
      $('#menu img').hover(
          function()
          {   
              storeNormalPath = $(this).attr('src');
              var imgArray = $(this).attr('src').split('.jpg');
              $(this).attr('src', imgArray[0]+'Hover.jpg');
          }, 
          function() 
          {   
              $(this).attr('src', storeNormalPath);
          }
          ).click (function()
          {
              //empty now
          });
  });
  </code></pre>