#REDIRECT [[jQuery]]
<div class="notice metadata" id="stub" style="clear:both;">''This [[JavaScript]]-related article is a [[Wikipedia:Stub|stub]]. You can help Wikipedia by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it].''</div> [[Category:JavaScript stubs]]
{{lowercase|title=cssQuery}}
{{Infobox_Software |
name = cssQuery Javascript Function|
developer = [[Dean Edwards]] |
latest_release_version = 2.0.2 |
latest_release_date = [[September 10]], [[2005]] |
genre = [[JavaScript]] [[Function]] |
license = [[Creative Commons Licence]]|
website = [http://dean.edwards.name/my/cssQuery/ dean.edwards.name] |
}}
'''cssQuery()''' is a powerful 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==
'''Syntax'''
'''<code>elements = cssQuery(selector [, from]);</code>'''
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
** [http://dean.edwards.name/my/cssQuery/ Official website]
** [http://dean.edwards.name/my/cssQuery/test.html Test page]
[[Category:JavaScript_libraries]]
|