www.webdeveloper.com
Results 1 to 2 of 2

Thread: Hot to set value to a TEXTAREA?

  1. #1
    Join Date
    Jun 2009
    Posts
    2

    Question Hot to set value to a TEXTAREA?

    How to set value to a TEXTAREA component?

    By setting value to "innerText" attribute is not working any other alternatives?

    thanking you,

  2. #2
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    As all the other form's controls, textarea has a value. This is the property you have to change: the value
    Code:
    document.forms['formname'].elements['textareaname'].value='new text';

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles