class method Prototype.Selector.match

View source on GitHub →

Prototype.Selector.match(element, expression) → Boolean
  • element (Element) – a DOM element.
  • expression (String) – A CSS selector.

Tests whether element matches the CSS selector.