...

View Full Version : greyed out



crmpicco
01-21-2005, 11:32 AM
i have a textbox:

<input type="text" class="input" tabindex="5" name="retdt" maxlength=5 size=13 onfocus="removeYear('retdt')" onblur="return checkdate('/T2AgIBE/html/calendar.html','document.fexp.retdt.value','document.fexp.rettm.value','ret',document.fexp.crdate.va lue,document.fexp.seldate.value,'retdt')" onChange="javascript:this.value=this.value.toUpperCase();">


when my radio button is clicked:

<input type="radio" name="oneret" value="O" onClick="disaridt();displayOpenJaw('oneret');">

i want it to be greyed out (i.e background-color changed to grey!)

possible?

Picco

glenngv
01-21-2005, 11:39 AM
Do you want the field to be disabled and not just changed its color?

<input type="radio" name="oneret" value="O" onClick="disaridt();displayOpenJaw('oneret'); this.form.retdt.disabled=true;">

crmpicco
01-21-2005, 11:46 AM
Would this work?

Or something along these lines....


<input type="radio" name="oneret" value="O" onClick="disaridt();displayOpenJaw('oneret'); this.form.retdt.disabled=true; this.form.retdt.style="#ECECEC"">

crmpicco
01-21-2005, 11:50 AM
<input type="radio" name="oneret" value="O" onClick="disaridt();displayOpenJaw('oneret'); this.form.retdt.disabled=true; this.form.retdt.style.background='ECECEC'">



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum