Home » Jquery » javascript – Fetch element id which is showing in div having list of elements-Exceptionshub

javascript – Fetch element id which is showing in div having list of elements-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:
<div class="fixed-height-scrollable-div">
     <div id="1"></div>
     <div id="2"></div>
     <div id="3"></div>
     <div id="4"></div>
</div>

In this example, I want to get the id from the first child div, which would be id=1 in this case.

How to&Answer: