
19/05/2003, 09:26
|
 | | | Fecha de Ingreso: noviembre-2002 Ubicación: Por ahí en algún sitio
Mensajes: 1.844
Antigüedad: 22 años, 3 meses Puntos: 1 | |
Deshabilitar input? Estoy tratando de deshabilitar un input y lo que hago es esto
<script language="JavaScript">
function habilita(){
document.registro.apartamento.disabled = false;
document.registro.facultad.disabled = false;
document.registro.grupo.disabled = false;
document.registro.profesor.checked = false;
}
function deshabilita(){
document.registro.apartamento.disabled = true;
document.registro.facultad.disabled = true;
document.registro.grupo.disabled = true;
document.registro.estudiante.checked = false;
document.registro.profesor.checked = true;
}
</script>
y la llamada la hago así
<form name="registro" action="" method="post">
<span class=info title=\"Marcar si eres otro tipo de usuario\"><input name=\"profesor\" type=\"checkbox\" value=\"profesor\" onClick=\"deshabilita()\" checked>
¿que hago?
__________________ Ing. Reynier Pérez Mira |