Child Elements
Getting sub-element instances is very simple; you just need to treat the instance as an array and access its sub-element instances via numeric indexing.
- I am 1
- I am 2
- I am 3
length
Get the number of child elements of the target element, as shown in the example above:
$("#logger1").text = $('ul').length;