jQuery: Find previous element with class
If you are trying to get the preceding sibling, use .prev()
.
If you are trying to get the sibling of the parent (like in your example) use .parent().prev()
.
Try this:
$('.C').click(function() {
alert($(this).parent().prev('.A').html());
});