Read-Only Div Block
Is it possible to achieve a pure read-only div block. As you are aware contentEditable and unselectable works only in IE but I am looking for a method which is compatible with both IE and Mozilla Firefox.
Thanks in advance.
Division elements on an HTML page are normally read-only.
Originally Posted by jscheuer1
The above code working as I wanted in IE. I am looking for a method which will work both in IE and Firefox or even a Firefox based method will do good for me.
<div contentEditable='false' unselectable='true'></div>
In my case these attributes dot' work at all event in IE:
The textbox still allows me entering and keystrokes. I wonder how to disable it indirectly (via manipulation with proper <DIV> attributes and styles).
<div contentEditable='false' unselectable='true' style="disabled:true" >
<span dir="ltr"><input name="ctl00$PlaceHolderMain$ctl01$ctl00$FormField1$ctl00$ctl00$onetidIOFile" type="text" value="!!! 1, 987 ?? 10.2.12" maxlength="123" id="ctl00_PlaceHolderMain_ctl01_ctl00_FormField1_ctl00_ctl00_onetidIOFile" title="---" class="ms-long" Size="35" /></span>