document.getelementbyclass with 2 class code example Example: getelementbyclassname get multiple class document.querySelectorAll('.a,.b')