get two classes in the getelementsbyclassname code example Example: getelementbyclassname get multiple class document.querySelectorAll('.a,.b')