Hello again. There is a script - http://jsfiddle.net/oceog/kKs8g/4/
I need it in order to make quick replies to comments.
I put it on my engine, but the form with comments is shown as many times as there are comments on the page. Whatever it was, I was advised to give the ID form / button a form that opens. In my template with comments there is a line php - <?php echo $post['id']; ?>
<?php echo $post['id']; ?>
, which gives a unique ID to each comment.
<a class="<?php echo $post['id']; ?>" href="javascript://" title="Показать\Скрыть блок">Показать</a> <div class="<?php echo $post['id']; ?>">Здесь располагается форма"</div> </div>
Everything is clear, where to add, but how do I add <?php echo $post['id']; ?>
<?php echo $post['id']; ?>
in jquery script? How not tried - did not work.
Help me please.
<?php echo $post['id']; ?>
<?php echo $post['id']; ?>
not needed in js, just take the id of the parent element when posting a comment. make a fiddle with your generated content so that it is clear exactly how everything looks in reality and what doesn't work. - zb '