The question was asked to me in an interview.
How to find which element is clicked by the user in the DOM using JQuery or Javascript or Both?
NOTE: User can
event.target sounds like what you're after.
$('#id').click(function(e) { //e.target will be the dom element that was clicked on });