javascript - Is there any easy way to get DOM descendants like with the parents() method when using jQuery? -


$ ('something'). Parents ('selectors') allows me to take several levels up in the DOM, versus parents () which surprisingly return the immediate parents of the present element Unfortunately (though logically), children () does not work as a parent () and instead it only brings the immediate children of the element back Is, as if parent () works I'm sure something like that Programming can take which I will how deeply all appropriate seed, but I think that is already a relatively easy way to do it. Any chance?

Use to find ('selector')


Comments