Ver Mensaje Individual
  #6 (permalink)  
Antiguo 14/07/2008, 10:28
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Respuesta: deshabilitar boton activo y habilitar los demas.

Hola lexus

A ver si te sirve esto:

Código PHP:
<html>
<
head>
<
script type="text/javascript">
function 
desactivar(obj) {
  
padre obj.parentNode;
  for (
i=0ele padre.getElementsByTagName('input')[i]; i++)
    
ele.disabled ele==obj;
}
</script>
</head>
<body>
<div id="algo">
<input type="button" value="Botón 1" onclick = "desactivar(this)" />
<input type="button" value="Botón 2" onclick = "desactivar(this)" />
<input type="button" value="Botón 3" onclick = "desactivar(this)" />
</div>
</body>
</html> 
Saludos,