cssQuery

Dean Edwards’s neat alternative to getElementsByTagName:

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.

Thursday, 1 September 2005