src code

class method Element.select

Element.select(element, selector...) → [Element…]
  • selector (String) – A CSS selector.

Takes an arbitrary number of CSS selectors and returns an array of descendants of element that match any of them.

Aliased as: Element.getElementsBySelector

This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.