Finding which element is clicked in the DOM

Posted by Bhupi on Stack Overflow See other posts from Stack Overflow or by Bhupi
Published on 2010-06-13T07:39:19Z Indexed on 2010/06/13 8:02 UTC
Read the original article Hit count: 144

Filed under:
|

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 click on any element in the DOM whether it is an img, div or even span.

If you can suggest some example then it will be very much helpful.

Thanks in advance

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery