can i getElementsByClassName in element insted of document code example Example: getelementbyclass var selector = document.getElementsByClassName('class-name');