Select List Background Color

D

Dennis Marks

I dynamically create 3 select lists from tables. I am having trouble
changing the background color. Would you look at
http://www.dcsi.net/~denmarks/amtrak_main.html
and tell me how to change it? I want the select list background color to
be the same as the rest of the document.

--
Dennis M. Marks

Disclaimer: The above is my opinion. I do not guarantee it. Be sure to
back up any files involved and use at your own risk. Batteries not
included. Not for internal use. Don't run with knives.
 
D

Dennis Marks

I dynamically create 3 select lists from tables. I am having trouble
changing the background color. Would you look at
http://www.dcsi.net/~denmarks/amtrak_main.html
and tell me how to change it? I want the select list background color to
be the same as the rest of the document.
PROBLEM SOLVED

--
Dennis M. Marks

Disclaimer: The above is my opinion. I do not guarantee it. Be sure to
back up any files involved and use at your own risk. Batteries not
included. Not for internal use. Don't run with knives.
 
J

Joshie Surber

I don't know if using JS to write the option lists out is the best
plan, but the easiest way to do this is just set background-color:
#RRGGBB in the CSS for all three select lists. This should work in 95%
of browsers in use. More importantly, it is the only way (not including
derivatives of same, such as style attrib or JS
element.style.backgroundColor) to add any kind of style to any kind of
form element.
 
D

Dennis Marks

I don't know if using JS to write the option lists out is the best
plan, but the easiest way to do this is just set background-color:
#RRGGBB in the CSS for all three select lists. This should work in 95%
of browsers in use. More importantly, it is the only way (not including
derivatives of same, such as style attrib or JS
element.style.backgroundColor) to add any kind of style to any kind of
form element.

This is just for fun. I have no idea of another way to create the option
lists without javascript. I do not have access to database processing
and I want to be able the keep all data stored in tables. Any advice
would be appreciated.

--
Dennis M. Marks

Disclaimer: The above is my opinion. I do not guarantee it. Be sure to
back up any files involved and use at your own risk. Batteries not
included. Not for internal use. Don't run with knives.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top