Latest Tutorials| Questions and Answers|Ask Questions?|Site Map

Home Answers Viewqa JavaScriptQuestions Just checking elswhere

Have Programming Question? Ask it here!

Colin Lansdown
Just checking elswhere
0 Answer(s)      3 years and a month ago
Posted in : JavaScript Questions

I have been posting some questions within the HTML group but getting no joy. I thought I would try another area.

The main question I was looking for is: I have a textarea box which post a single users comment back to the same html page they enter the text. However what I wanted it to do is add other comments rather than overwriting the orignal. Here is the current code which does the job but it only allows a single comment on the page.

<script type="text/javascript">
function showComment(){ var data=document.getElementById("text").value;
     document.getElementById("comment").style.visibility= "visible";

<body>Post Comment: <br><textarea id="text" rows="10" cols="40"></textarea><br>
<label id="comment" style="visibility:hidden"><b>Comments: </b>
<label id="lab">Comments</label><br>
<input type="button" value="Post" onclick="showComment();">

Please can you help?.


View Answers

Related Tutorials/Questions & Answers: