EOB
EOB

Reputation: 3085

Hide all divs having a certain class using Prototype?

How can I hide all divs having the class myclass using Prototype? I guess something like $$('myclass') and foreach?

Thanks!

Upvotes: 3

Views: 2051

Answers (1)

Michael Righi
Michael Righi

Reputation: 1353

$$("div.myclass").each(Element.hide);

Upvotes: 8

Related Questions