How to check if an element contains a class using JavaScript? - Kevin Powell - Community