Matt West is a designer at Wildbit, creators of Beanstalk, Postmark and DeployBot. He also wrote the book HTML5 Foundations. You can catch him on twitter as @MattAntWest.
February 8, 2023 in Learn
Something that comes up often when building front-end web applications is the need to change the classes applied to an element. For some time elements have had a className attribute which allows you to retrieve a string containing the class…