I have been stumped by this for a few days now. I have the following simple test statement:
- alert($(this).css("background-position"));
positioned in an each() loop. In Firefox, the correct value is returned as is specified in the stylesheet (the stylesheet reads "-1px top" and jQuery returns "-1px 0%" which is fine by me).
Precisely the same code yields an "undefined" value in IE 8.
Help?
EDIT: Wow. Even THIS test failed, even though the border shows up on the page.
- $("#left-nav1").css("border", "1px solid blue"); alert($("#left-nav1").css("border"));
It still says "undefined". What is wrong with IE?