JavaScript getting an elements class without any libraries May 11, 2023 by Tarik Maybe you should try this var colClass = el.className