HTML - problemilla facil

 
Vista:

problemilla facil

Publicado por Antonio (1 intervención) el 30/11/2005 12:47:37
Aver, tengo un poblemilla mu facil. Necesito que al pulsar un texto me lo cambie por otro y viceversa, es decir:

Enabled (click) Disabled (click) Enabled..............

Os lo agradeceria muxo

1 Saludo
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:problemilla facil

Publicado por JJ (227 intervenciones) el 09/12/2005 19:14:56
Que onda estimado
Estudiate este código

<HTML>
<HEAD>
<META name=VI60_defaultClientScript content=JavaScript>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--

function text1_onclick() {
if (text1.value=="Disabled")
{
text1.value="Enabled"
}
else
text1.value="Disabled"
}

//-->
</SCRIPT>
</HEAD>
<BODY>

<P><INPUT id=text1 name=text1 value=xx LANGUAGE=javascript onclick="return text1_onclick()"></P>

</BODY>
</HTML>

Saludos
JJ
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