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