1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Add and Remove CSS Classes with Vanilla JavaScript

    javascriptJavaScript

    We'll use the add and remove methods on a DOM element's classList to add and remove classes with jQuery, or another framework.