Finding which element is clicked in the DOM
- by Bhupi
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