YUI Library Home

Site Search (YDN & YUIBlog):

# 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

- Complex Application (included with examples for the Layout Manager)

### Selector Utility:

- User's Guide (external)
- API Documentation
- Cheat Sheet PDF(external)

Copyright © 2010 Yahoo! Inc. All rights reserved.

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