title: Why is alert($('.myClass').hasClass('myClass')); false?
body: <p>When the page loads i replace the attributes of a specific object. Then in a few lines under(maybe directly under) i do another check which always seems to fail. So i tried </p>
  
  <pre><code>alert($('.myClass').hasClass('myClass'));
  </code></pre>
  
  <p>and by all logic shouldnt that always return true?
  I set a breakpoint in firebug and i can see the object with the new attribute however... why does this line fail?</p>