$(function() { $('.block a').click(function() { alert($(this).next('b').html()); return false; }); })