JSFiddle - React, Tailwind, and code Playground

by darkajax

HTML

<button id="post1-new-comment-button"></button>
<input id="post1-new-comment" name="comment[body]" size="50" type="text" />

CSS

#post1-new-comment {
    display: none;
}

JavaScript

$(function() {
     $("#post1-new-comment-button").click(function() {
        $("#post1-new-comment").val("").toggle();
    });
});