The function children() may behave a little unexpectedly in that it only looks one level down - to the elements that are direct children of the elements in the jQuery object in question.

For cases when you want to look through all of the descendants of an element, .find() is the method that you are going to need to use.

.find() selects all descendants of the elements in the jQuery object in question. Unlike .children(), it must be filtered by a selector. To get all elements, the selector can be the star operator -> '*'.