+ 1

Hi everyone, what is the difference between a "child" and a "descendant" in Jquery and Javascript ???

Elements relation (children, parent, descendant)

2nd Jan 2020, 1:35 PM
Sumpheus
Sumpheus - avatar
2 Respostas
+ 2
A child is a direct descendant (one level below) a parent element. A descendant could also be second, third or any level below a parent element (grandchild, ...)
2nd Jan 2020, 1:47 PM
Michael
Michael - avatar
+ 1
Thanks and Happy New Year 🥂
2nd Jan 2020, 2:06 PM
Sumpheus
Sumpheus - avatar