cssQuery
Appearance
![]() | This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
|
Developer(s) | Dean Edwards |
---|---|
Stable release | 2.0.2
/ September 10, 2005 |
Type | JavaScript library |
License | GNU Lesser General Public License v2.1 |
Website | dean.edwards.name |
cssQuery() is a cross-browser JavaScript function that enables querying of a DOM document using CSS selectors. All CSS1 and CSS2 selectors are allowed plus quite a few CSS3 selectors.
Usage
elements = cssQuery(selector [, from]);
where selector (required) is a valid CSS selector and from (optional) is a document, element or array of elements which is filtered by selector.
The function returns a JavaScript array of elements. If there is no match, an empty array is returned.
Resources
- Official Resources