Need help on PHP/jQuery comments script
<p>I asked this question previously but i didnt post the code. So here it goes...</p>

<pre><code>&lt;?php require(database.php); ?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;style type="text/css"&gt;
.comment-wrap {
    width: 300px;
    overflow: hidden;
    margin-bottom: 10px;
}
.reply {
    overflow: hidden;
    margin-top: 10px;
}
.comment-wrap .replyLink {
    float: right;
}
.comment-wrap .comment {
    float: left;
    margin-left: 5px;
}
.comment-wrap .img {
    background-color: #F00;
    height: 50px;
    width: 50px;
    float: left;
}
&lt;/style&gt;
&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
    $(document).ready(function() {
                $(".reply").hide();
        });
    $(document).ready(function() {
        $('.replyButton').click(function() {
            $(".reply").show();
        });

    });
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;?php

$sql= "SELECT * FROM comments";
$result = $database-&gt;query($sql);

while($row = mysql_fetch_array($result)) {
    echo '&lt;div class="comment-wrap"&gt;';
        echo '&lt;div class="img"&gt;' . $row['img'] .'&lt;/div&gt;';
        echo '&lt;div class="comment"&gt;' . $row['comment'] . '&lt;/div&gt;';
        echo '&lt;div class="replyLink"&gt;';
        echo '&lt;a href="#" class="replyButton" "&gt;Reply&lt;/a&gt;&lt;/div&gt;';
    echo '&lt;/div&gt;';
    echo '&lt;div class="reply"&gt;
    Type your message: &lt;br /&gt;
      &lt;form id="form1" name="form1" method="post" action=""&gt;
            &lt;label for="reply"&gt;&lt;/label&gt;
            &lt;textarea name="replyMessage" class="replyMessage" cols="45" rows="5"&gt;&lt;/textarea&gt;
      &lt;/form&gt;';
    echo '&lt;/div&gt;';
}
?&gt;


&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>When the user clicks on reply button reply class is expanded on all the comments which was hidden previously. But i want the reply class to expand only on that comment on which the user has clicked the reply button.</p>

<p>The content will be stored in MySQL database and retrieved through PHP. But here i just need help on jQuery part. I'm not asking for full code, just give me some hints so that i can solve it.</p>
