Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Colour of background on input box????

Status
Not open for further replies.

notrut

Programmer
Feb 6, 2002
87
CA
Hi,

I'm trying to change the colour of the background on an input box, but I can't seem to get it to work.

I've tried this:

<input type =&quot;text&quot; style =&quot;width:30px; height:20px; bgcolor:blue&quot; name=&quot;txtTotal&quot; maxlength=&quot;10&quot; disabled></input>

Can you do this without using CSS??????
 
try
background-color:blue; _______________________________________________
{ str = &quot;sleep is good for you. sleep gives you the energy you need to function&quot;;
ptr = /sleep/gi;Nstr = str.replace(ptr,&quot;coffee&quot;);alert(Nstr); }

_______________________________________________
for the best results to your questions: FAQ333-2924

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top