cssQuery es una función javascript que busca elementos por su ruta CSS.
Compatible con todos los navegadores.
Veamos algunos ejemplos:
// find all paragraphs that are direct descendants
// of the document body
var tags = cssQuery("body > p");
// find all elements with the "href" attribute
var tags = cssQuery("[href]");
// find all anchor elements with "href" equal to "#"
var tags = cssQuery("a[href='#']");
// find all images contained by the above anchors
var images = cssQuery("img", tags);
// find all lists
var tags = cssQuery("dl,ol,ul");
// query an external xml document
var tags = cssQuery("my|:root>my|link", myXMLDoc);
// just plain complicated
var complex = "p>a:first-child+input[type=text]~span";
var tags = cssQuery(complex)

Esto esta de puta madre