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 ()
You can use the event.target to determine what was clicked:
$('#daddy').click(function (e) { alert(e.target.id); // The id of the clicked element });
Here's a simple example.