<div class="commentfull">
<?php $comment=m ysqli_query($connect, "SELECT * FROM comment WHERE product = '$p'"); $user=m ysqli_query($connect, "SELECT * FROM user"); $datauser=m ysqli_fetch_assoc($user); while ($datacomment=m ysqli_fetch_assoc($comment)) { ?>
<div class="commentcontent">
<div class="commentfill">
<?php echo $datacomment[ 'comment']; ?>
</div>
<ul>
<li class="commenttime">
<p>
<?php echo $datacomment[ 'time']; ?>
</p>
</li>
<li class="commentreply"><span id="triggerreply">Reply</span></li>
</ul>
</div>
<div class="commentformreply">
<form method="POST" id="myform" action="<?php echo $base; ?>/config/addcomment.php">
<input type="hidden" name="p" value="<?php echo $p; ?>" />
<textarea class="commentarea" name="comment" placeholder="Your comment"></textarea><span class="commentclose">cancel</span>
</form>
</div>
<?php } ?>
jquery :
$("#triggerreply").click(function() {
$(".commentformreply").slideDown("medium");
});
$(".commentclose").click(function() {
$(".commentformreply").slideUp("medium");
});
css :
.commentformreply {display:none; }
so, when i clicked 'reply' its show every commentformreply, i just want one of them appearing on its place where i clicked, how to doing this?