![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
07/02/2011, 15:48
|
![Avatar de jotaincubus](http://static.forosdelweb.com/customavatars/avatar101814_3.gif) | | | Fecha de Ingreso: mayo-2005 Ubicación: Medellin - Colombia
Mensajes: 1.797
Antigüedad: 19 años, 8 meses Puntos: 394 | |
Respuesta: habilitar caja de texto al seleccionar menu <input type="text" ... id="miCampoDeTexto" />
<select ... onchange="cambiarTextfields(this);">
<option value="1">Mi opción 1</value>
<option value="2">Mi opción 2</value>
</select
[ en javascript ]
function cambiarTextfields(selec) {
if (selec.value == 1) {
document.getElementById('miCampoDeTexto').disabled = true;
.... Y así con todos los textfields que quieras desactivar
}
else if (selec.value == 2) {
document.getElementById('miCampoDeTexto').disabled = false;
... Y así con todos los textfields que quieras activar
}
}
eso es java... si lo necesitas con PHP no tengo idea de como hacerlo
__________________ Por que existe gente que no agradece después de que se le ha brindado tiempo y ayuda ??? |