src code

class method Prototype.Selector.select

Prototype.Selector.select(expression[, root = document]) → [Element…]
  • expression (String) – A CSS selector.
  • root (Element | document) – A "scope" to search within. All results will be descendants of this node.

Searches root for elements that match the provided CSS selector and returns an array of extended Element objects.