$('.reply').click(function () {
var replybox = $(".replybox").clone().show();
$(replybox).appendTo(this,parent('.post'));
});
What I’m trying to do:
- Clone .replybox (display:none;) then make it visible
- Put inside $(this).parent(‘.post’)
- Ideally make .replybox show/hide on .reply click (kinda like youtube comments reply box).
1 Answer