Jquery and quirks mode
Jquery and quirks mode
Hi
I have a page that is in quirks mode because of a wrong specified doctype. In my situation I have absolutely no chance to fix this. So I have to make my script work with this mode.
This is the script
-
$(document).ready(function() {
if ($("#Banner img[src*=testtest]").size() <= 0 &&
$("#Banner img[src*=test]").size() <= 0)
{
$(".top-banner").addClass("right");
};
});
In quirksmode it sets the right class to the top-banner no matter what. Any suggestions to this?