How to get the data-id of next list element from the current active list element on button click?
<div class="nbrs">
<ul>
<li id="item1" data-id="1" class="active">Coffee (first li)</li>
<li id="item2" data-id="2">Tea (second li)</li>
<li id="item3" data-id="3">Green Tea (third li)</li>
</ul>
</div>
<button id="btnNext" type="button">Next</button>
The next element data-id need to be shown till the last (third) li.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…