Gets the children of each element in the set of matched elements, including text and comment nodes.
The children.
$('#fruits').contents().length;//=> 3 Copy
$('#fruits').contents().length;//=> 3
https://api.jquery.com/contents/
Gets the children of each element in the set of matched elements, including text and comment nodes.