hey everyone, im new to javascript and need to figure out a way to put some java into my .php validation i am doing. i am looking to disable a group of radio buttons as well as a group of textboxes, but only if 1 certain checkbox is checked. Does anyone have any idea to begin this process. i have some slight code ill put in but it was from a tutorial i found online. any help is appreciated thank you in advance
[CODE]<script type=”text/javascript”>
<!–
function DisableRadioGroup(radioGroup, disable)
if(window.document.form1.OwnersManual.checked=true){
for(var i=0; i < radioGroup.length; i++)
{
radioGroup[i].disabled = false
}
}
else
{
for(var i=0; i < radioGroup.length; i++)
{
radioGroup[i].disabled = true
}
}
}
//–>
</script>
<input type=”checkbox” name=”OwnersManual” value=”ResendOwnersManual” onClick=”disableRadioGroup(ServiceName,(this.value.length == 0))”>