Demonstrating the .getElementsByClassName Method with Show-Hide JavaScript

Grey box: show/hide

Red box: show/hide

This demo works for browsers that support the .getElementsByClassName method.

For more information see Obtaining Element References in JavaScript.