Traversing means to select HTML element on the basis of their relationship with other elements. Begining with one element we move through the DOM(Document object Model) untill we achieve the element needed.
As we shift from one element to another in the DOM, sometimes we are replacing the first choice with new choice, or sometimes we are making choice from the first selection.
In jQuery there are various methods to traverse the DOM.
jQuery is having impressive ways which are straightforward and immediate to find an element which we are searching for and helps in acheiving the result we want.
There are various methods of traversing, one of them is tree-traversal.
The children() will return all the immediate children of the selected element.
This method only traverse a single level down the DOM tree.
Here is the link for the clear understanding of the children method:-