append element with specific class code example Example: append element to specific class document.getElementsByClassName("thistime")[0].appendChild(first);