471,573 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,573 software developers and data experts.

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 8457
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 XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.