How to get the first child id inside the div using JQuery
Use this to get first element of id1 element:
$("#id1").children(":first");
$("#id1:first-child").attr("id")
Use this to get first element of id1 element:
$("#id1").children(":first");
$("#id1:first-child").attr("id")