js find element by class name in div code example Example: javascript document object model getElementsByClassName document.getElementsByClassName('test')