Necesito activar/desactivar un par de radiobutton a partir de que active/desactive un checkbox.
Tengo lo siguiente
Código:
<input type="checkbox" name="participante[]" value="1" onclick="document.nomencladores.tipo_1.disabled=!document.nomencladores.tipo_1.disabled">
<input name="tipo_1" type="radio" value="0" disabled/>
<input name="tipo_1" type="radio" value="1" disabled/>
<input type="checkbox" name="participante[]" value="2" onclick="document.nomencladores.tipo_2.disabled=!document.nomencladores.tipo_2.disabled">
<input name="tipo_2" type="radio" value="0" disabled/>
<input name="tipo_2" type="radio" value="1" disabled/>
<input type="checkbox" name="participante[]" value="3" onclick="document.nomencladores.tipo_3.disabled=!document.nomencladores.tipo_3.disabled">
<input name="tipo_3" type="radio" value="0" disabled/>
<input name="tipo_3" type="radio" value="1" disabled/>
ETC...
nomencladores es el nombre del formulario.
Cada checkbox activa su par de radios cuyo tipo_X es igual a su value. Que tengo mal?.