[Javascript] jQuery

面白い。prototype.jsRubyに影響を受けたメソッドを持っているのは有名だけど。jQuery

jQuery gets a lot of its inspiration from the power behind the Prototype library.

ということで、prototype.js以上に Rubyっぽくて何とメソッドチェーンがバリバリ出てくる。

$("p").find("a").css("fontWeight","bold"); 

これは、<p>タグに含まれる <a>タグに "fontWeight: bold" を反映させる。メソッドをつなぐ快感が jQueryにはある。