Hi, how can I select "post" div html() by click "remove".
If I write $('post').html() select work only for first "post", but I need to select for example second or third.
//html
<div class="posts">
<div class="post">
Some text for first div
<a class="remove">remove</a>
<hr>
</div>
<div class="post">
Some text for second div
<a class="remove">remove</a>
<hr>
</div>
<div class="post">
Some text for third div
<a class="remove">remove</a>
<hr>
</div>
</div>
// jQuery
$('.remove').live('click', function() {
var postHTML = $(this).html(); // select only "a" element
});