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
alert($('.myClass').hasClass('myClass'));
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?