Just specify that it is "readonly" (of course, readonly textareas have a uneditable background as well.)
Example:
Also note, Readonly Textarea's and Disabled Textarea's are Internet Explorer ONLY!Code:<form> <textarea readonly> </textarea> </form>
Really easy question. How do I get an uneditable text area. It just displays text but users can't edit the text. You know, like a textarea that contains a user agreement.
Thanks.
Just specify that it is "readonly" (of course, readonly textareas have a uneditable background as well.)
Example:
Also note, Readonly Textarea's and Disabled Textarea's are Internet Explorer ONLY!Code:<form> <textarea readonly> </textarea> </form>
Last edited by DarkBlood; September 10th, 2004 at 21:00.
try putting in "disabled" (at least i remembered <textarea disabled> works
i passed the following expreassion through PHP yesterday. and it gave a false output
if (1 == 'one') {
echo('true');
} else {
echo('false');
}
so there for 1 dont equal to one.....0_o
Dark Element, as I said... both disabled and readonly are basically the same in HTML standards; but BOTH are IE only.
Bookmarks