Ver Mensaje Individual
  #7 (permalink)  
Antiguo 29/09/2010, 09:24
Avatar de memoadian
memoadian
Colaborador
 
Fecha de Ingreso: junio-2009
Ubicación: <?php echo 'México'?>
Mensajes: 3.696
Antigüedad: 14 años, 10 meses
Puntos: 641
Respuesta: habilitar un input file deshabilitando un text

ni mandado a hacer hermano, funciona de 10 lástima que no te puedo dar más karma.

otra forma que se me ocurrió es esta

Código Javascript:
Ver original
  1. <form name="form1">
  2. <input type='text' id='text' />
  3. <input type='file' id='file' disabled="disabled"/>
  4. <input name="checkbox1" type="checkbox" id="checkbox1" onChange="document.form1.text.disabled = true; document.form1.file.disabled = false; text.disabled = this.checked; file.disabled = !this.checked;" value="checkbox">
  5. </form>

Muchas gracias por tu tiempo.