Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/11/2007, 03:01
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años, 1 mes
Puntos: 772
Re: habilitar radiobutton

hola luisicozgz

Prueba este ejemplo:

Código PHP:
<html>
<
head>
<
script type="text/javascript">
function 
habilita(obj) {
  for (
i=0i<3i++)
    
obj.form.rad[i].disabled obj.selectedIndex==1;
}
</script>
</head>
<body>
<form>
<select onchange = "habilita(this)">
<option>Si</option>
<option>No</option>
</select>
<input type="radio" name="rad" />
<input type="radio" name="rad" />
<input type="radio" name="rad" />
</form>
</body>
</html> 
Saludos,