Subelements
Accessing child element instances is very simple. You just need to treat the instance as an array and access its child element instance by using indexes.
<script src="https://cdn.jsdelivr.net/gh/kirakiray/ofa.js@4.5.26/dist/ofa.min.js"></script>
<ul>
<li>I am 1</li>
<li>I am 2</li>
<li>I am 3</li>
</ul>
<div id="logger1" style="color:red;"></div>
<div id="logger2" style="color:blue;"></div>
<script>
setTimeout(()=>{
$("#logger1").text = $('ul').length;
$("#logger2").text = $('ul')[1].text;
}, 500);
</script>
length
Get the number of child elements of the target element; an example is shown above;
$("#logger1").text = $('ul').length;