title: how to pass text box value in show function?
body: <p>I want to pass the text box value in show function</p>
  
  <pre><code>&lt;div id="userComment"&gt;
      &lt;input type="text" name="comment" id="comment" placeholder="Enter comment here"&gt;
      &lt;button type="submit" class="postComment" onclick="show()" value="&lt;?php echo $postId ?&gt;"&gt;POST&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>