Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/07/2008, 10:31
Avatar de marcopoloaz06
marcopoloaz06
 
Fecha de Ingreso: julio-2007
Ubicación: México
Mensajes: 457
Antigüedad: 17 años, 6 meses
Puntos: 11
Respuesta: Habilitar un campo text por medio de un radio button

hola,
haber si
te entendi
Código HTML:
<html>
<head>
 <title> </title>
<script type="text/javascript">
function cambiarFecha(f){
    
    var date = new Date();
    var f2 = document.getElementById("Fecha2");
    
   document.getElementById("Fecha").disabled = true;
   
   f2.type = "text";
   f2.value = date.getDate() +"/"+ (date.getMonth()+1 ) +"/"+ date.getFullYear(); 
    
};
</script>
</head>
<body>

<input type="hidden" value="TUFECHA" id="Fecha" /><br>
<input type="hidden" value="" id="Fecha2" />

   <input type="radio" onclick="cambiarFecha(this);" />

</body>
</html> 
saludos
:)
__________________
Aerolíneas Alicia :D