HOLA, QUISIERA HACER COMO LAS PAGINAS Q SI ESTAN DEACUERDO DEL CONTRATO SE ACTIVA EL BOTON Y SI MARCAN NO, SE DESACTIVA..VIA ALGUNAS OPCIONES DEL FAQ PERO NO ME FUNCIONARON
gRACIAS DE ANTEMANO
| |||
![]() HOLA, QUISIERA HACER COMO LAS PAGINAS Q SI ESTAN DEACUERDO DEL CONTRATO SE ACTIVA EL BOTON Y SI MARCAN NO, SE DESACTIVA..VIA ALGUNAS OPCIONES DEL FAQ PERO NO ME FUNCIONARON gRACIAS DE ANTEMANO
__________________ SaLuDoS dE: PePeLuChO dEl PeRú PaRa El MuNdO |
| |||
Ejemplo Espero te sirva este ejemplo amigo <html> <head> <title>formularios - javascript y radio button - ejemplo 3</title> <SCRIPT language="JavaScript" type="text/javascript"> agree = 0; // 0 means 'no', 1 means 'yes' </script> </HEAD> <BODY bgcolor="#ffff99"> <center> <form name=enableform> Sólo puedes entrar tu nombre si estas de acuerdo con lo establecido<br> <br> <input type=radio name='enable' value='agree' onClick="agree=1; document.enableform.box.focus();">estoy de acuerdo<br> <input type=radio name='enable' value='disagree' onClick="agree=0; document.enableform.box.value='';">no estoy de acuerdo<br><br> Entra tu nombre: <input type=text name=box onFocus="if (!agree)this.blur();" onChange="if (!agree)this.value='';" size=12> </form> </center> </html> |
| |||
Ok, Gracias por tu respuesta, pero como puedo hacer que se habilite y se deshabilite un boton ya que he probado y no me funca... Gracias d antemano..
__________________ SaLuDoS dE: PePeLuChO dEl PeRú PaRa El MuNdO |