Show or Hide Multiple Elements by Class Name with a Drop Down List

I needed a way to sort multiple ids or classes so I came up with the following. This drop down calls all of the divs by associated by class. This bit of code can be altered to accommodate any number of images or anything else you want to fill a div with.

See the Pen Sort Multiple Classes by Dropdown by Nate Balcom (@nbalcom) on CodePen.

If you liked this post you may be interested in some free web development tools.