beginner problem - changing element in parent container
so let's say i have several instances of this on the page:
<div class="container">
<h2>value</h2>
<a href="#" class="blah">blah</a>
</div
When the link is clicked the value of that particular h2 should change. tried this:
$('.blah').click(function() {
$(this).parent().('h2').html(newvalue);
}
what that does is change the value of ALL h2 elements on the page. what am i doing wrong?