<div>
<p class="foo">Something_1</p>
<p>Something_2</p>
<p>Something_3</p>
</div>
<script>
function ReturnValue(){
var countElem = $('.foo').next('p').length
+$('.foo').nextAll('p').length
+$('.foo').nextUntil('p').length;
console.log(countElem);
};
</script>
What will be the value of countElem variable after executing the code?
Login in to like
Login in to comment