使用Prototype隐藏所有具有某个类的div?

EOB*_*EOB 3 html prototypejs

如何使用Prototype 隐藏所有具有类myclass的 div ?我想像$$('myclass')和foreach这样的东西?

谢谢!

Mic*_*ghi 8

$$("div.myclass").each(Element.hide);
Run Code Online (Sandbox Code Playgroud)