not editable text field
Moderator: General Moderators
not editable text field
how to make text field not editable
you can use disabled
JS too
Code: Select all
<input type="text" name="field" value="blaa" disabled>JS too
Code: Select all
document.forms[0].address.disabled = true;- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
FYI, disabled stops the value from being submittedqads wrote:you can use disabled
instead, you can use readonly
Code: Select all
<input type="text" name="field" value="blaa" readonly=readonly />