how to clear document.getElementsByClassName(elementID) ij js code example Example: javascript document object model getElementsByClassName document.getElementsByClassName('test')