JavaScript - DESAVILITAR CAMPO

 
Vista:

DESAVILITAR CAMPO

Publicado por Karla (14 intervenciones) el 10/04/2002 15:53:08
HOLA A TODOS, NO SE SI ALGUIEN ME PODRIA DECIR PORFAVOR COMO LE HAGO PARA EN EL MOMNETO QUE YO LE DOY CLICK A UN RADIO BOTTON, ME DESABILITE UN CAMPO DE TEXTO, LES AGRADECERE MUCHO SU AYUDA
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:DESAVILITAR CAMPO

Publicado por Charlos (99 intervenciones) el 10/04/2002 16:24:06
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<HTML>
<HEAD>
<SCRIPT>
function desact(){with(document.forms.form1){
 
	texto.disabled=true;
 
}}
</SCRIPT>
</HEAD>
<BODY>
<FORM name='form1'>
<BR><BR><BR>
<INPUT TYPE="text" NAME="texto" size="30" maxlength="30">
<BR>
<INPUT TYPE="radio" NAME="" onclick="desact();">
 
</FORM>
</BODY>
</HTML>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:DESAVILITAR CAMPO

Publicado por Karla (14 intervenciones) el 10/04/2002 18:51:55
MUCHAS GRACIAS!!!!!, POR TU AYUDA.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:DESAVILITAR CAMPO

Publicado por Karla (14 intervenciones) el 10/04/2002 18:52:58
MUCHAS GRACIAS!!!!!, POR TU AYUDA.
AHORA COMO LE HABO PARA VOLVERLO ACTIVAR YA LE PUSE ENABLED PERO SIGUE DESACTIVADO, DE ANTEMANO GRACIAS DE NUEVO.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:DESAVILITAR CAMPO

Publicado por Charlos (99 intervenciones) el 11/04/2002 06:56:43
1
2
3
4
5
6
7
8
<SCRIPT>
function desact(){with(document.forms.form1){
 
if(!texto.disabled)
   texto.disabled=true;
else  texto.disabled=false;
}}
</SCRIPT>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar