469,275 Members | 1,871 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

color in the user input box

how can I make the value of the user input box as a desired color? (such as red)

Is it also possible to change the color in the user input box background?

RC
Jul 20 '05 #1
3 8410
reneeccwest wrote:
how can I make the value of the user input box as a desired color? (such
as red)
http://www.w3.org/TR/CSS2/colors.html#propdef-color
Is it also possible to change the color in the user input box background?


http://www.w3.org/TR/CSS2/colors.htm...ckground-color

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #2
"reneeccwest" <re*********@hotmail.com> schreef in bericht
news:9f**************************@posting.google.c om...
how can I make the value of the user input box as a desired color? (such as red)
Is it also possible to change the color in the user input box background?

Use a stylesheet.
Jul 20 '05 #3
reneeccwest wrote:

how can I make the value of the user input box as a desired color? (such as red)
if(form[field_name].style){
form[field_name].style.backgroundColor='red'};

I use that all the time to background color form elements that fail the
form check.

Cheers,
Jeff

Is it also possible to change the color in the user input box background?

RC

Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by hokiegal99 | last post: by
19 posts views Thread by Vinod | last post: by
1 post views Thread by laredotornado | last post: by
9 posts views Thread by MadingS | last post: by
12 posts views Thread by Tarique | last post: by
6 posts views Thread by AAaron123 | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.