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