I need the id of the child element alone which is clicked. If I use $(this).attr('id')
it brings the id of the parent also.
Here is the code,
<body>
<div id="divOne">
<div id="divTwo">
<div id="divThree">
<div id="divFour">
</div>
</div>
</div>
</div>
</body>
I need the id of the div four alone when it is clicked