-
Which method is not for traversing DOM tree sideways?
-
- prev()
- nextAll()
- parent()
- siblings()
- None of these
Correct Option: C
There are methods for traversing DOM tree sideways. Some of them are next(), prev(), prevAll(), nextAll(), siblings(), prevUntil(), next(). All the sibling elements are returned by siblings() method. The next sibling is returned by next() method. All the next siblings are returned by nextAll() method.