Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 602
EOB Avatar asked Mar 08 '26 08:03

EOB


1 Answers

$$("div.myclass").each(Element.hide);
like image 108
Michael Righi Avatar answered Mar 09 '26 21:03

Michael Righi