Closed Thread
Results 1 to 4 of 4

Thread: Uneditable text area?

  1. #1
    Level 8 Chinese Guy Archbob is on a distinguished road Archbob's Avatar
    Join Date
    Jun 2001
    Posts
    4,701

    Uneditable text area?

    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.

  2. #2
    NLC DarkBlood is just really niceDarkBlood is just really niceDarkBlood is just really niceDarkBlood is just really nice DarkBlood's Avatar
    Join Date
    Aug 2002
    Location
    Madison, WI
    Posts
    4,506
    Just specify that it is "readonly" (of course, readonly textareas have a uneditable background as well.)

    Example:
    Code:
    <form>
    <textarea readonly>
    </textarea>
    </form>
    Also note, Readonly Textarea's and Disabled Textarea's are Internet Explorer ONLY!
    Last edited by DarkBlood; September 10th, 2004 at 21:00.

  3. #3
    Member Dark_Element is an unknown quantity at this point Dark_Element's Avatar
    Join Date
    May 2004
    Posts
    81
    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

  4. #4
    NLC DarkBlood is just really niceDarkBlood is just really niceDarkBlood is just really niceDarkBlood is just really nice DarkBlood's Avatar
    Join Date
    Aug 2002
    Location
    Madison, WI
    Posts
    4,506
    Dark Element, as I said... both disabled and readonly are basically the same in HTML standards; but BOTH are IE only.

Closed Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts