Is there a ways in jQuery to tell which child was clicked if the onclick event was binded to the parent?
For instance:
$(\'#daddy\').click(function ()
Try this for an alternative
$('#daddy span').click(function () { var clicked = $(this).attr('id'); if(clicked == "son"){ return true; } return false; });