How to set value for <textarea> tag in HTML?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Prakash Gnana
    New Member
    • Jan 2011
    • 25

    How to set value for <textarea> tag in HTML?

    Code:
    <textarea name="quest" id="quest" value='gggg' rows="10" cols="100"></textarea>
    I cannot set the value for textarea. Can you please help me to set value for it?
  • code green
    Recognized Expert Top Contributor
    • Mar 2007
    • 1726

    #2
    Pretty sure <textarea> does not have a "value" attribute.
    What are you trying to do?

    Comment

    • Markus Igeland
      New Member
      • Feb 2011
      • 14

      #3
      You do it this way:

      Code:
      <textarea name="quest" id="quest" rows="10" cols="100">gggg</textarea>
      With the "value" inside the textare-element (between the tags).

      Comment

      Working...