 
			
				24/04/2008, 09:11
			
			
			     |  
        |     Colaborador   |    |    Fecha de Ingreso: febrero-2002  Ubicación: Madrid  
						Mensajes: 25.052
					  Antigüedad: 23 años, 8 meses Puntos: 772     |        |  
  |      Re: Como activo un campo de archivo        Hola  sevillarg. Bienvenido al foro.  
Prueba este ejemplo:   
Código:
  <html>
<head>
<script type="text/javascript">
function habilitar(obj,num) {
  obj.form['archivo'+num].disabled = !obj.checked;
}
</script>
</head>
<body>
<form>
<input type="checkbox" onclick = "habilitar(this,1)" />
<input type="file" name="archivo1" disabled="disabled" />
<input type="checkbox" onclick = "habilitar(this,2)" />
<input type="file" name="archivo2" disabled="disabled" />
</form>
</body>
</html>
  Saludos,                 |