Re: readonly text entry
[ Follow Ups ] [ Post Followup ] [ Intranet eXchange ] [ IDM Home ]
Posted by Jon Hanlon on August 18, 2000 at 1:36:4:
In Reply to: readonly text entry posted by Charls on August 17, 2000 at 19:58:43:
In IE4+ you can use the DISABLED attribute. <form name=myForm> <input type=checkbox name="readOnlyBox" value="RO" onChange="document.all.tabArea.disabled = this.checked" >Read Only Thing <br> <textarea id=tabArea rows=4 cols=40> </textarea> </form> In Netscape, you have to blur the textarea <textarea id=tabArea rows=4 cols=40 onFocus="return document.myForm.readOnlyBox.checked"> </textarea> Combine both for a cross-browser version.
Follow Ups:
|