Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 337
  • Last Modified:

Initialize textarea

Please tell me what's wrong in the way I'm trying to initiialize a textarea with the value "23".

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

Open in new window

0
dshrenik
Asked:
dshrenik
  • 2
1 Solution
 
Loganathan NatarajanLAMP DeveloperCommented:
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

0
 
Loganathan NatarajanLAMP DeveloperCommented:
this is simple example, <textarea name="textarea"> 23, this is default value</textarea>
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now