jQuery
1 2 3
Code Link 1 Source Documentation:
$("div p").css("background", "blue");
$("div[rel='test']").css("background", "blue");
$("div p:nth-child(odd)").css("background", "blue");
MooTools
1 2 3
Code Link 1 Source Documentation:
$$("div p").setStyle("background", "blue");
$$("div[rel='test']").setStyle("background", "blue");
$$("div p:nth-child(odd)").setStyle("background", "blue");
The Dojo Toolkit
1 2 3
Code Link 1 Source Documentation:
dojo.query("div p").style("background", "blue");
dojo.query("div[rel='test']").style("background", "blue");
dojo.query("div p:nth-child(odd)").style("background", "blue");
Prototype / Script.aculo.us
1 2 3
Code Link 1 Source Documentation:
$$("div p").invoke("setStyle", { "background": "blue" });
$$("div[rel='test']").invoke("setStyle", { "background": "blue" });
$$("div p:nth-child(odd)").invoke("setStyle", { "background": "blue" });
Ext JS
1 2 3
Code Link 1 Source Documentation:
Ext.get(Ext.query("div p")).setStyle("background", "blue");
Ext.get(Ext.query("div[rel='test']")).setStyle("background", "blue");
Ext.get(Ext.query("div p:nth-child(odd)")).setStyle("background", "blue");
Adobe Spry
1 2 3
Code Link 1 Source Documentation:
Spry.$$("div p").setStyle("background: blue;");
Spry.$$("div[rel='test']").setStyle("background: blue;");
Spry.$$("div p:nth-child(odd)").setStyle("background: blue;");
BBC Glow
1

2 3
Code C Link 1 Source Documentation:
glow.dom.get("div p").css("background", "blue");

glow.dom.get("div").each(function(){
if (this.getAttribute("rel") == "test") {
glow.dom.get(this).css("background", "blue");

}
});

glow.dom.get("div p").each(function(e){
if (!(e % 2)) {
glow.dom.get(this).css("background", "blue");

}
});
Yahoo! UI Library
1 2 3
Code Link 1 Source Documentation:
Y.all("div p").setStyle("background", "blue");
Y.all("div[rel='test']").setStyle("background", "blue");
Y.all("div p:nth-child(odd)").setStyle("background", "blue");

 Matthias Schütz - Media Designer / Web Designer / Developer / Freelancer