How does js get sibling parent and other nodes

  • 2020-03-30 01:16:02
  • OfStack

Var chils = s.c hildNodes; // gets all the child nodes of s

Var par = supachai panitchpakdi arentNode; // gets the parent node of s

Var ns = s.n extSbiling; // gets s's next sibling node

Var ps = supachai panitchpakdi reviousSbiling; // is the last sibling of s

Var fc = s. irstChild; // gets the first child node of s

Var lc = s.l astChile; // gets the last child node of s

Related articles: