This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes options[i].style.color not working in Firefox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "options[i].style.color not working in Firefox" Watch "options[i].style.color not working in Firefox" New topic
Author

options[i].style.color not working in Firefox

mudassir shahab
Ranch Hand

Joined: Oct 13, 2003
Posts: 54
Hi,
i am trying to set color of a label in combo box using javascript....

options[i].style.color="red"

its working fine in IE but not in FireFox...any clues ??
[ May 05, 2008: Message edited by: Bear Bibeault ]
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
It seems to be working fine for me on FF as well as IE. Can you post the code you've written down? Chances are that the error lies somewhere else and not in the part you've posted.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61298
    
  66

Terminology correction: there is no such thing as a "combo box" on the web. Please read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
GeeCON Prague 2014
 
subject: options[i].style.color not working in Firefox