Hi,
ich möchte wenn Choice b gewählt wird dann soll normalerweise nicht nur Value Not in Spalte B sondern auch TEST in Spalte A geschrieben wird. D.h. Choice B ist erweiterung von Choice a.
<table>
<tr>
<td valign="top"><input class="radio" type="radio" name="a" id="a" value="TEST" onClick="checkRadio(this)"> </td>
<td><label for="a" id="a_labela">Choice A.</label></td>
</tr>
<tr>
<td valign="top"><input class="radio" type="radio" name="b" id="b" value="NOT" onClick="checkRadio(this)"> </td>
<td><label for="b" id="b_labelb"> ChoiceB.</label></td>
</tr>
</table>
Javascript code sieht so aus
function checkRadio( obj ){
var validCheck = false;
for (var i=0; i<Radios.length; i++) {
var actRadio = document.getElementById(unsubRadios[i]);
if (actRadio != null) {
if( obj.id == actRadio.id ){
actRadio.checked = true;
validCheck = true;
} else {
actRadio.checked = false;
}
}
}
vielen Dank
vg