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.

Selector Utility:

Copyright © 2007 Yahoo! Inc. All rights reserved.

Privacy Policy - Terms of Service - Copyright Policy - Job Openings