So I have the following scenario:
Sample text. Anchor link
$("#block").click(function(event) { if($(event.target).attr('id') == $(this).attr('id')) { alert('test'); } });