I am creating a comments section, but there is one problem: how do you make the input value blank when you click post?
<input type="text" value="" id="stuffed" />
<button onclick="post()">Post</button>
<script>
function post(){
var x = document.getElementById("stuffed").value;
document.getElementById("paragraph").innerHTML = "<me> " + x;
}
</script>
<p style="color: #ffffff;" id="paragraph"></p>
So that posts the comment (I'll use css to decorate it later), but where it says 'comment' still has the previously posted comment in it. How do you return the value of that to blank?