Código:
Aca esta el checkbox y el textbox:function cambiar() { if(!document.getElementById("txtIdem").checked) { document.getElementById("txtNombreFacturacion").disabled = false; } else { document.getElementById("txtNombreFacturacion").disabled = true; } }
Código HTML:
<input type="checkbox" name="txtIdem" id="txtIdem" onclick="cambiar();"> <input type='text' name='txtNombreFacturacion' id="txtNombreFacturacion" value="<?echo $row_facturacion['nombre'];?>" >
document.getElementById("txtNombreFacturacion").re adonly = true;
pero no funciona. Me podrian dar una mano
![de acuerdo](http://static.forosdelweb.com/fdwtheme/images/smilies/dedosarriba.png)
Saludos
![Adios](http://static.forosdelweb.com/fdwtheme/images/smilies/adios.gif)