title: jQuery, Uncaught TypeError
body: <p>I have some javascript code on my webpage that is loading some divs onto the page. I also want to add onmouseenter, and onmouseleave event handlers to each div. I am using jquery to add these handlers, but i get the error:</p>
  
  <blockquote>
    <p>"Property '$' of object [object DOMWindow] is not a function"</p>
  </blockquote>
  
  <p>My code looks like this, it is in a for loop:</p>
  
  <pre><code>var newItem = document.createElement('div');
  newItem.innerHTML = results[i];
  newItem.setAttribute("id", "resultDiv_" + i.toString());
  dropDown.appendChild(newItem);
  
  //Error on next line...
  $("resultDiv_" + i.toString()).bind("mouseenter", function() {
      $("resultDiv_" + i.toString()).css({ 'background-color': 'blue' });
  });
  </code></pre>
  
  <p>Does anyone have any ideas why i am getting this error, or even what the error means?</p>