Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/11/2008, 10:26
soulbless
 
Fecha de Ingreso: noviembre-2008
Mensajes: 24
Antigüedad: 15 años, 6 meses
Puntos: 0
De acuerdo Necesito javascrip que habilite campos con un checkbox

Buenas tengo un problemilla y es que tengo un formulario.. en el cual tengo varios checkbox y varios campos de texto... necesito que al activar el checkbox se habilite el campo de texto.. y viceversa.
Espero contar con su ayuda!! Gracias!! adjunto el html

Código HTML:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<td width="5"><form id="form1" name="form1" method="post" action="">
  <table width="469" cellpadding="0" cellspacing="0">
    <col width="47" />
    <col width="270" />
    <col width="27" />
    <col width="66" />
    <col width="80" />
    <tr height="22">
      <td height="22" width="47">COD</td>
      <td width="322"><div align="center" class="Estilo3">SERVICIO DE FESTEJO</div></td>
      <td width="58">&nbsp;</td>
      <td width="58">&nbsp;</td>
    </tr>
    <tr height="17">
      <td height="17"></td>
      <td><div align="center">Descripciòn</div></td>
      <td>Cantidad</td>
      <td></td>
    </tr>
    <tr height="17">
      <td height="17">519</td>
      <td class="Estilo2">Sillas C/Faldon y Lazo</td>
      <td><label>
          <div align="center">
            <input name="textfield" type="text" id="textfield" value="" size="4" />
          </div>
        <div align="center"></div>
        <div align="center"></div></td>
      <td><label>
        <input name="checkbox" type="checkbox" id="checkbox" value="519" />
      </label></td>
    </tr>
    <tr height="17">
      <td height="17">520</td>
      <td class="Estilo2">Mesa C/Mantel y Blonda</td>
      <td><label>
          <div align="center">
            <input name="textfield2" type="text" id="textfield2" size="4" maxlength="4" />
          </div>
        <div align="center"></div>
        <div align="center"></div>
        </label></td>
      <td><input name="checkbox2" type="checkbox" id="checkbox2" value="520" /></td>
    </tr>
  </table>
</form>
</td>
<td class="clsNormal10" value="2">&nbsp;</td>
</body>
</html>