<table>
<tr>
<td><input type="checkbox" name="MEMORIA" value="ON" onclick="desactiva1(this)"/>MEMORIA</td>
<td><input type="text" name="txtmemoria" value="" size="4" DISABLED/></td>
<td><input type="checkbox" name="HANDS FREE" value="ON" />HANDS FREE</td>
<td><input type="text" name="txthands" value="" size="4" DISABLED/></td>
</tr>
<tr>
<td><input type="checkbox" name="CABLE USB" value="ON"/>CABLE USB</td>
<td><input type="text" name="txtusb" value="" size="4" DISABLED/></td>
<td><input type="checkbox" name="DVD" value="ON" />DVD</td>
<td><input type="text" name="txtdvd" value="" size="4" DISABLED/></td>
</tr>
<tr>
<td><input type="checkbox" name="CARGADOR" value="ON" />CARGADOR</td>
<td><input type="text" name="txtcargador" value="" size="4" DISABLED/></td>
<td><input type="checkbox" name="MANUAL" value="ON" />MANUAL</td>
<td><input type="text" name="txtmanual" value="" size="4" DISABLED/></td>
</tr>
<tr>
<td><input type="checkbox" name="CLIP" value="ON" />CLIP</td>
<td><input type="text" name="txtclip" value="" size="4" DISABLED/></td>
<td><input type="checkbox" name="CHIP" value="ON" />CHIP</td>
<td><input type="text" name="txtchip" value="" size="4" DISABLED/></td>
</tr>
</table>
y su escript es:
function desactiva1(obj) {
frm=obj.form.elements;
for(i=0;i<frm.length;i++)
if(frm[i].type=='text')
frm[i].disabled= !obj.checked;;
}
ala hora de hacerle click en uno me lo activa todos y yo solo kiero q me lo habilite la caja q le corresponde al chekbox... Gracias