Ver Mensaje Individual
  #5 (permalink)  
Antiguo 13/01/2004, 11:44
Avatar de KarlanKas
KarlanKas
Moderador extraterrestre
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 22 años, 5 meses
Puntos: 61
Mejor esto que lo anterior no funciona:

Código PHP:
<html>
<
head>
    <
title>Untitled</title>
    <
script>
    function 
cambio(formulario){
    if(
formulario.texto2.value!=''){
    
formulario.elements[0].disabled=true
    formulario
.elements[1].disabled=true}
    else{
formulario.elements[0].disabled=false
    formulario
.elements[1].disabled=false}
    }
    
</script>
</head>

<body>
<form name='enviar' method='POST' action='pagina2.htm'>
<input type='radio' name='texto' value='texto1'>
<input type='radio' name='texto' value='texto1'>
<input type='text'
onkeypress="cambio(this.form)" name='texto2'>
</form>


</body>
</html> 
__________________
Cómo escribir

No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.

Última edición por KarlanKas; 13/01/2004 a las 11:55