Using Jquery for multiple values?
<p>I'm trying to display a reply form for each comment but I hide the form using Jquery and I was wondering how can I grab the comment id and add it to Jquery so it can hide each reply form and display the correct reply form correctly instead of displaying the wrong reply form?</p>

<p>For example, <code>form_show_hide1, form_show_hide2, form_show_hide3, form_show_hide4</code> and so on.</p>

<p>I;m using PHP and JQuery.</p>

<p>Here is the Jquery code.</p>

<pre><code>  $(function(){
      $('a#form_show_hide').click(function(){
        $('#form_container').slideToggle('slow');
        // prevent default action
        return false;
      });
    });
</code></pre>

<p>Here is the HTML code. Note I changed the ids to classes.</p>

<pre><code>&lt;a href="#" title="Reply Link" class="form_show_hide"&gt;Reply&lt;/a&gt;


&lt;form method="post" action="' .htmlentities($_SERVER['REQUEST_URI']) . '" class="form_container&gt;
    &lt;fieldset&gt;
        &lt;textarea rows="6" cols="70"&gt;&lt;/textarea&gt;
        &lt;input type="submit" name="reply" value="Submit" /&gt;
        &lt;input type="hidden"  name="id" value="' . urlencode($comment_id) . '"  /&gt;
    &lt;/fieldset&gt;
&lt;/form&gt;
</code></pre>
