Hi rich,
try this:
<script language="javascript">
function makegrey()
{
if (document.MyForm2.radio5.value = 'yes')
{
document.MyForm2.textbox7.disabled = true;
document.MyForm2.textbox7.style.backgroundColor = '#C0C0C0';
}
}
function makenormal()
{
if (document.MyForm2.radio5.value = 'no')
{
document.MyForm2.textbox7.disabled = false;
document.MyForm2.textbox7.style.backgroundColor = '#FFFFFF';
}
}
</script>
<form name="MyForm2">
Do you want to grey the textbox when it is disabled?
<input onclick="javascript:makegrey();" value="yes" type="radio" name="radio5" id="radio5">Yes
<input onclick="javascript:makenormal();" value="no" type="radio" name="radio5" id="radio5">No
<br>
<input type="text" name="textbox7" id="textbox7">
<br>
</form>
Hope this helps,
Erik