Harshmellow
Programmer
´Ello,
I tried using the formname.inputname.disabled="true" statement but it only worked for text boxes, and not for the radio button group.
I have a form in which one question is a "Yes or No" one, and if the user chooses "No" he would not be able to select the next "Yes or No" question entirely, which is another radio group.
The problem is: Everything I tried did not disable the group. The code i am using is as follows for the text boxes:
function tarv(inVal) {
if (inVal == 'yes') {
formname.inputname.disabled = false;
formname.inputname.focus();
}
else {
formname.inputname.disabled = true;
}
}
and the radio which has the java code is onClick="tarv('no');". This works to disable text boxes, as I said, but now I wanted to disable a whole radio button group. How can it be done? I am doing it the same way for text box and radio group. Maybe there are differences??
Thank y´all in advance,
bl
I tried using the formname.inputname.disabled="true" statement but it only worked for text boxes, and not for the radio button group.
I have a form in which one question is a "Yes or No" one, and if the user chooses "No" he would not be able to select the next "Yes or No" question entirely, which is another radio group.
The problem is: Everything I tried did not disable the group. The code i am using is as follows for the text boxes:
function tarv(inVal) {
if (inVal == 'yes') {
formname.inputname.disabled = false;
formname.inputname.focus();
}
else {
formname.inputname.disabled = true;
}
}
and the radio which has the java code is onClick="tarv('no');". This works to disable text boxes, as I said, but now I wanted to disable a whole radio button group. How can it be done? I am doing it the same way for text box and radio group. Maybe there are differences??
Thank y´all in advance,
bl