how to get 2 classes immediately in js code example Example: javascript get element by multiple class names document.getElementsByClassName('class1 class2')