get elements by class name two classes code example Example: getelementbyclassname get multiple class document.querySelectorAll('.a,.b')