Developer Network Home - Help

YUI Library Examples: Selector Utility

Selector Utility: Examples

The Selector Utility provides convenient methods for retrieving, testing, and filtering DOM elements using CSS Selectors.

  • Using query: The query method retrieves an array of DOM elements that match the provided selector.
  • Using filter: The filter method filters a collection of nodes based on the provided selector.

Other YUI Examples That Make Use of the Selector Utility

Copyright © 2016 Yahoo! Inc. All rights reserved.

Privacy Policy - Copyright Policy - Job Openings