parent method

ElementQuery parent (
  1. [String selector]
)

Retrieve the parents of each element in this collection.

    • The redundant elements in the resulting collection will be removed.
    • If selector is provided, parents who do not match the selector is
  • filtered out.

Implementation

ElementQuery parent([String selector]);