18/10/2005, 15:44
|
| | | Fecha de Ingreso: mayo-2003 Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 21 años, 6 meses Puntos: 5 | |
Código HTML: <html>
<head>
</head>
<script language="javascript">
function Activate() {
var f = document.test
var radio = f.Radio;
var but = f.boton_Radio;
for (i=0; i < radio.length; i++) {
if (radio[i].checked == true) {
but[i].disabled = false;
} else {
but[i].disabled = true;
}
}
}
</script>
<body>
<form name="test">
<input type="radio" name="Radio" id="Radio" onClick="Activate()">Radio 1
<input type="submit" name="boton_Radio" id="boton_Radio" value="Boton 1" disabled="disabled">
<br>
<br>
<input type="radio" name="Radio" id="Radio" onClick="Activate()">Radio 2
<input type="submit" name="boton_Radio" id="boton_Radio" value="Boton 2" disabled="disabled">
<br>
<br>
<input type="radio" name="Radio" id="Radio" onClick="Activate()">Radio 3
<input type="submit" name="boton_Radio" id="boton_Radio" value="Boton 3" disabled="disabled">
</form>
</body>
</html> saludos
__________________ Saruman One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them. |