CssQuery: Difference between revisions

Content deleted Content added
Nominated for deletion; see Wikipedia:Articles for deletion/CssQuery.
Rewriting article to focus on library (not function) and remove WP:COPYVIO. More cites to come.
Line 18:
}}
{{lowercase|title=cssQuery}}
'''cssQuery''' is a [[JavaScript]] [[Library (computing)|Library]] used to query HTML elements via [[CSS_selector#Selector|CSS selectors]]. cssQuery was the first publicly-available library to support versions 1–3 of the CSS standard, and provides separate libraries for each. The library works on all modern browsers.
'''cssQuery()''' is a [[cross-browser]] [[JavaScript]] [[Function (computer science)|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 References==
*{{cite book | last=Resig | first=John | title=Pro JavaScript Techniques | page=93 | url=http://books.google.com/books?id=GgJN2CC_2s4C&pg=PA94&lpg=PA94 | year=2006 | isbn=978-1-59059-727-9 | publisher=Apress }}
'''<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 ==