452 users online (0 members and 452 guests)  


  Results 1 to 2 of 2

Related

  1. How do you print content of textarea?    Forum: Javascript Forum
    Replies: 6
  2. Possible textarea glitch and IE    Forum: HTML Forum
    Replies: 4
  3. Limited Textarea    Forum: HTML Forum
    Replies: 4
  4. Textarea or something    Forum: HTML Forum
    Replies: 2
  5. Advanced Textarea question    Forum: HTML Forum
    Replies: 1
  1. #1
    mkrayapudi's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2009
    Posts
    1

    How to set value to a TEXTAREA ?

    Hi,
    How to set value to a TEXTAREA using javascript?

    thank you,

  2. #2
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: How to set value to a TEXTAREA ?

    If you have the following HTML markup:
    Code:
    <textarea id='thisarea'></textarea>
    then you can use the following JavaScript to change the text within the textarea:
    Code:
    document.getElementById("thisarea").value = "This little piggy went to market";
    Let me know if you have any questions.



Tags for this Thread