Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Display in textarea - what's wrong?

    Hi !

    I am at a loss. My page contains a form with the following text area..

    <textarea name="textbody" value="type anything in here" cols=80 rows=2 wrap="soft"></textarea>

    Surely this should display the value ="type anything in here" in the textbox ? I cannot work out why I am getting a blank box as if the value is not specified. The form works great otherwise.

    Lesley

  • #2
    New Coder
    Join Date
    Nov 2002
    Location
    PA
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Display in textarea - what's wrong?

    Originally posted by Lesley
    Instead of:<textarea name="textbody" value="type anything in here" cols=80 rows=2 wrap="soft"></textarea>
    Try:


    <input type="textarea" name="textbody" value="type anything in here" cols=80 rows=2 wrap="soft">


    I think that value is an attribute of input and not of textarea. Cols and Rows don't seem to work though
    Last edited by mark123; 11-30-2002 at 03:41 PM.
    Howdy, y'all.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts


    <textarea name="textbody" cols=80 rows=2 wrap="soft">Type anything in here</textarea>

  • #4
    New Coder
    Join Date
    Nov 2002
    Location
    PA
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by MCookie


    <textarea name="textbody" cols=80 rows=2 wrap="soft">Type anything in here</textarea>
    Oh yeah...that too! LOL.
    Howdy, y'all.

  • #5
    New Coder
    Join Date
    Oct 2002
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Actually Mark - your version seemed to ignore the sizing of my box.

    Thank you for trying though -

    MCookie seems to have the answer, many thanks !

    Lesley


  •  

    Posting Permissions

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