![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
17/05/2009, 10:17
|
| | Fecha de Ingreso: noviembre-2002 Ubicación: Elche
Mensajes: 548
Antigüedad: 22 años, 2 meses Puntos: 0 | |
disabled ... <input type="checkbox" id="habilitador"... onclick="habilitar();"...
function habilitar(){
if (document.getElementById("habilitador").checked==" true"){
document.getElementById("nick").disabled="false";
}
else
{
document.getElementById("nick").disabled="true";
}
}
¿Por qué me devuelve siempre el valor "nick" a true?
No lo entiendo.
Saludos y gracias |