Foros del Web » Creando para Internet » HTML »

Ayuda + radiobutton y campo texto

Estas en el tema de Ayuda + radiobutton y campo texto en el foro de HTML en Foros del Web. Gracias X leerlo amigos : Mi pregunta es la sgte: tengo el siguiente codigo: letra.php Cita: <html> </head> <body> <div id="Layer1"> <form method="post" name="frmX" id="frmX"> ...
  #1 (permalink)  
Antiguo 28/04/2008, 08:52
Avatar de ACX_POISON  
Fecha de Ingreso: abril-2008
Ubicación: Talca-Chile
Mensajes: 750
Antigüedad: 16 años
Puntos: 7
Exclamación Ayuda + radiobutton y campo texto

Gracias X leerlo amigos :

Mi pregunta es la sgte:

tengo el siguiente codigo:

letra.php

Cita:
<html>
</head>

<body>
<div id="Layer1">
<form method="post" name="frmX" id="frmX">
<table width="413" height="114" border="0">
<tr>
<td colspan="2"><div align="center">Seleccione lo que Desea </div></td>
</tr>
<tr>
<td width="146"><label>
<input name="radiobutton" type="radio" value="individual" checked="checked" onselect="document.frmX.cant_letra.disabled=!docum ent.frmX.cant_letra.disabled"/>
Individualmente</label></td>
<td width="257"><label>Cantidad de Letras
<input name="cant_letra" type="text" id="cant_letra" size="5" disabled="disabled" />
</label></td>
</tr>
<tr>
<td><label>
<input name="radiobutton" type="radio" value="intervalor" />
Por Intervalos </label></td>
<td>Entre
<label>
<input name="ini_letra" type="text" id="ini_letra" size="10" disabled="disabled"/>
y
<input name="fin_letra" type="text" id="fin_letra" size="10" disabled="disabled"/>
</label></td>
</tr>
</table>
</form>
</div>
</body>
</html>
en el hay un formulario con redio buton y campo de text que estan deshabilidados
, pero quiero que se habiliten cuando el radiobutton del lado este seleccionado
¿Como lo hago ?

GRACIAS...
  #2 (permalink)  
Antiguo 28/04/2008, 14:01
Avatar de hgp147  
Fecha de Ingreso: diciembre-2006
Ubicación: Buenos Aires, Argentina
Mensajes: 980
Antigüedad: 17 años, 3 meses
Puntos: 36
Re: Ayuda + radiobutton y campo texto

Código HTML:
<div id="Layer1">
<form method="post" name="frmX" id="frmX">
<table border="0" height="114" width="413">
<tbody><tr>
<td colspan="2"><div align="center">Seleccione lo que Desea </div></td>
</tr>
<tr>
<td width="146">
<label>
<input name="radiobutton" id="1" value="individual" checked="checked" onclick="document.frmX.ini_letra.disabled=true;document.frmX.fin_letra.disabled=true;document.frmX.cant_letra.disabled=false;" type="radio">
Individualmente
</label></td>
<td width="257">
<label>Cantidad de Letras
<input name="cant_letra" id="cant_letra" size="5" type="text">
</label></td>
</tr>
<tr>
<td>
<label>
<input name="radiobutton" id="2" value="intervalor" onclick="document.frmX.ini_letra.disabled=false;document.frmX.fin_letra.disabled=false;document.frmX.cant_letra.disabled=true;" type="radio">
Por Intervalos </label></td>
<td>Entre
<label>
<input name="ini_letra" id="ini_letra" size="10" type="text" disabled="disabled">
y
<input name="fin_letra" id="fin_letra" size="10" type="text" disabled="disabled">
</label>
</td>
</tr>
</tbody></table>
</form>
</div> 
__________________
Spread Firefox | Download Day 2008
¡Únete en nuestra misión para alcanzar el Record Guinness al software más descargado en 24 horas! http://www.spreadfirefox.com/es-ES/worldrecord/
  #3 (permalink)  
Antiguo 29/04/2008, 12:20
Avatar de ACX_POISON  
Fecha de Ingreso: abril-2008
Ubicación: Talca-Chile
Mensajes: 750
Antigüedad: 16 años
Puntos: 7
Re: Ayuda + radiobutton y campo texto

Gracias X responder
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 13:42.