
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.
<html>
<head>
<script type="text/javascript">
function showComment(){ var data=document.getElementById("text").value;
alert(data);
document.getElementById("comment").style.visibility= "visible";
document.getElementById("lab").innerHTML=data;
}
</script>
</head>
<body>Post Comment: <br><textarea id="text" rows="10" cols="40"></textarea><br>
<label id="comment" style="visibility:hidden"><b>Comments: </b>
</label>
<label id="lab">Comments</label><br>
<input type="button" value="Post" onclick="showComment();">
</body>
</html>
Please can you help?.
Colin
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.