I wish to show or highlight the day matching the current day. Its one of the In this article, we will count all elements inside a div element using jQuery. Try: var inputs = document.getElementById('mydiv').getElementsByTagName('input'); document.getElementById('mydiv').getElementsByTagName('input') Look at the parameter values of the querySelectAll () method. The demo here shows how to use the clildren property in JavaScript to get all the elements inside a DIV element

(greater than sign) after the div selector. ,