title: One comment html form for many posts in single page (DRY advice)
body: <p>I am showing multiple posts in one page and want to add comments through a modal box. Yet I do not want to repeat the comment form for every post record.</p>
  
  <p>For the time being, I added "id" parameter to "comment" link inside post box, plus a hidden field inside form "comment_post_id" with an empty value, and manipulating it via jQuery as follows:</p>
  
  <pre><code>$('.comment').click(function() {
      var id;
      id = $(this).attr("id");
  
      $('#comment_post_id').attr('value', '');
      $('#comment_post_id').attr('value', id);
  });
  </code></pre>
  
  <p>is there any better way to do it ?</p>