[removed] Find out which element was clicked without attaching any eventlistener to it?

后端 未结 3 1804
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-05 02:51

I am confused on finding an approach to resolve this issue. Consider below html


  
3条回答
  •  一生所求
    2021-01-05 03:03

    $("#parent").click(function(e){
       console.log(e.target);
    });
    

    Demo: http://jsfiddle.net/4bC6K/

提交回复
热议问题