Ver Mensaje Individual
  #13 (permalink)  
Antiguo 11/01/2007, 01:33
Avatar de ZiTAL
ZiTAL
 
Fecha de Ingreso: marzo-2004
Ubicación: Bermio (Bizkaia)
Mensajes: 1.545
Antigüedad: 20 años, 2 meses
Puntos: 62
Re: Habilitar un combo al chequear un checkbox

Comentar que el foro no es una ONG, que primero hay que intentarlo y si no se consigue pues preguntar, pero como estamos de buen humor:

Código HTML:
<html> 
<head>
<script type="text/javascript">  
 function Block(esto,id) 
  { 
   if(esto.checked==true) 
    { 
	  id=document.getElementById(id); 
	  id.disabled=false;
	  id.focus(); 
	} 
   else 
    { 
	  id=document.getElementById(id); 
	  id.value="";
	  id.disabled=true; 
	} 
  } 
</script> 
</head> 
<body onload="Block(document.getElementById('txek'),'Aukera')"> 
<input type="checkbox" id="txek" name="txek" onclick="Block(this,'Aukera')"/> 
<input type="textbox" id="Aukera" name="Aukera" />
</body> 
</html> 

;)
__________________
http://zital.no-ip.org
____________________

Euskerie ahuen eta bijotzan