Initialize textarea

Posted on 2011-05-04
Last Modified: 2012-05-11
Please tell me what's wrong in the way I'm trying to initiialize a textarea with the value "23".

tableHTML += '<td id="" >' + '<textarea rows="1" cols="70" id ="feedback_' + rowCounter + '" value = "23" name ="feedback_' + rowCounter + '"></textarea></td>';

Open in new window

Question by:dshrenik
    LVL 36

    Accepted Solution

    There is no value in the text area, you should try
    tableHTML += '<td id="" >' + '<textarea rows="1" cols="70" id ="feedback_' + rowCounter + '" name ="feedback_' + rowCounter + '">23</textarea></td>';

    Open in new window

    LVL 36

    Expert Comment

    by:Loganathan Natarajan
    this is simple example, <textarea name="textarea"> 23, this is default value</textarea>

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
    This video teaches users how to migrate an existing Wordpress website to a new domain.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now