Possible Duplicate:
Javascript: Find out which element was clicked without attaching any eventlistener to it?
If I have the following html, is it possible to tell which element the user clicked on using JQuery?
<div id="left">
<div id="item1">1</div>
<div id="item2">2</div>
</div>
$('#left').click(function(){
});
do you mean:
Demo: jsFiddle