[jQuery] Re: select change function

2009-04-21 Thread geh...@googlemail.com
thanks, everything is fine within safari, opera and internet explorer. within firefox, the container's background color is not changing yet. as background color firefox (osx) chooses preconfigured systemcolor, not the one specified in the option-fields style-sheet. bug in firefox?! On 21 Apr., 04

[jQuery] Re: select change function

2009-04-20 Thread James
Is there a reason you're running a $.each for the selected option? It seems there's only one possible selected option at once. $("select").change(function() { $selected = $(this).find("option:selected"); $("#result").css( 'background-color', $selected.css (