Here is my DOM:
<div class="group">
<div class="comment">
<button class="addLink">Add link</button>
</div>
<div class="link">
<button class="removeLink">Remove link</button>
</div>
</div>
I wanna click on the button.addLink and it will copy the div.link and append it as last child in div.group.
i started out with this code but got stuck.
$(this).parent().parent().children(':last').clone().appendTo();
i dont know how to write appendTo. cause i want it to be appended to div.group but i cant just type it as 'div.group' cause there will be a lot of other div.group so i have to select it from a relational point of view.
could someone help me out here?