Jump to content

greyed out input text field with innerHTML?


solarisuser

Recommended Posts

the problem with setting disabled is that the form field value will not transmitted on submit.  with a text field you can set readOnly instead:

document.getElementById('textfieldID').readOnly = true;

http://www.w3schools.com/htmldom/dom_obj_text.asp

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.