Han
Fri Dec 19 19:59:58 CST 2003
Something like this,
<HTML><HEAD>
<script language=vbscript>
sub sc
msgbox 1
t.style.backgroundcolor=s.children(s.selectedIndex).innerText
end sub
</script>
</HEAD><TITLE></TITLE>
<BODY>
<select onchange=sc id=s>
<option>white</option>
<option>black</option>
</select>
<input type=text id=t>
</BODY>
</HTML>
--
Pohwan Han, Microsoft MVP, ASP/ASP.Net, Korea
Have a nice day.
"Susan Cranford" <susan_cranford@dcf.state.fl.us> wrote in message
news:OeEiHSnxDHA.1760@TK2MSFTNGP10.phx.gbl...
> Please forgive, I know this must be an easy one but I can't quite figure
> it out. Based on the value selected in a listbox I want to change the
> background color of an input control at runtime. Please tell me this is
> an easy.....
>
> SusanC
>
> *** Sent via Developersdex
http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!