Menu
Is there a way to alter the state of a textbox so that at times
it is READONLY true (disabled=true or edits not allowed) and at other times be false (disabled=false or edits allowed)
I can’t get this to work.
[code=php]
<input id=”Tbox” type=”text” value=””>
<input type=”button” onClick=”document.getElementById(‘Tbox’).disabled=true” value=”Set READONLY”>
<input type=”button” onClick=”document.getElementById(‘Tbox’).disabled=false” value=”Reset READONLY”>
Obviously I’m doing something wrong, but I don’t see it yet!
Thanks in advance.