Muchas gracias
Código:
y este es el htmlfunction bhOtros (accion){ if (accion=="b"){ document.getElementById('tdr_sexo').disabled = true; document.getElementById('tdtalle').disabled = true; var Vrsexo = document.getElementById('r_sexo'); var Vrsexo1 = document.getElementById('r_sexo1'); Vrsexo.checked=false; Vrsexo1.checked=false; var Vtalle1 = document.getElementById('talle1'); var Vtalle2 = document.getElementById('talle2'); var Vtalle3 = document.getElementById('talle3'); var Vtalle4 = document.getElementById('talle4'); var Vtalle5 = document.getElementById('talle5'); Vtalle1.checked=false; Vtalle2.checked=false; Vtalle3.checked=false; Vtalle4.checked=false; Vtalle5.checked=false; }else{ document.getElementById('tdr_sexo').disabled = false; document.getElementById('tdtalle').disabled = false; } }
Código HTML:
<tr> <td class="texto_dest"><input type="radio" name="regalo" value="gorra" onclick="cambiarImg(0);bhOtros('b');">Gorra <br> <input type="radio" name="regalo" value="Remera Greenpeace" onclick="cambiarImg(1);bhOtros('h');" >Remera Greenpeace <br> <input type="radio" name="regalo" value="Remera Toxicos blanca" onclick="cambiarImg(2);bhOtros('h');" >Remera Toxicos blanca <br> <input type="radio" name="regalo" value="Remera Toxicos azul" onclick="cambiarImg(3);bhOtros('h');" >Remera Toxicos azul <br> <input type="radio" name="regalo" value="Remera Toxicos rojo" onclick="cambiarImg(4);bhOtros('h');" >Remera Toxicos rojo <br> <input type="radio" name="regalo" value="no" onClick="bhOtros('b');">No deseo recibir ningún regalo </td> </tr> <tr> <td><b>2) Elección de sexo</b></td></tr> <tr><td class="texto_dest" id="tdr_sexo"><input type="radio" name="r_sexo" value="h" id="r_sexo" >Para hombre <input type="radio" name="r_sexo1" value="m" >Para mujer </td> </tr> <tr> <td><b>3) Elección de talle</b></td> </tr> <tr> <td class="texto_dest" id="tdtalle"><input type="radio" id="talle1" name="talle" value="XL" >XL <input type="radio" id="talle2" name="talle" value="L" >L <input type="radio" id="talle3" name="talle" value="M" >M <input type="radio" id="talle4" name="talle" value="S" >S <input type="radio" id="talle5" name="talle" value="XS">XS</td> </tr>