Tuesday, December 22, 2009

[jQuery] $(checkbox).css('background-color',value) does not work on FireFox?

All,

I am building a bunch of widgets, and creating standard tests for each widget.  Part of the test involves setting the background color attribute to a known value, and then making sure that the widget initialization code did what it was asked to do.

So, on Safari, the code for the checkbox passes.  On Firefox, it does not.  Funny thing, the <input> element has a style for the background color, but .css('background-color') is not returning the color I set.  It is returning rgb(255,255,255).

Anybody else seen this?

--
John Arrowwood
John (at) Irie (dash) Inc (dot) com
John (at) Arrowwood Photography (dot) com
John (at) Hanlons Razor (dot) com
--
http://www.irie-inc.com/
http://arrowwood.blogspot.com/

No comments: