how to find the class name of 'deepest' div in javascript/jquery?

GoogleBoy

New Member
I am aware that e.target contains the info of the element just below the cursor, but what if I want to know the class name of the div which has a table>tr>td>button in it and I'm clicking that button inside that td. I know this events bubbles up and there should be a way to find out if the div exists in that bubbling levels. Any help. Scenario: button is inside a modal window. How do I find the modal windows class name on click of the button inside it.
 
Back
Top