Append element to atom


I’d like to append an html element after another. Atom seems to use classes over ids. So in the find-and-replace (div) class and after the header-item options-label pull-right (span) class. How would I navigate to that position to do something like:

myElement = document.createElement('span')

#panel = document.getElementByClassName()[0]?


You need to specify the hierarchy to pinpoint the element using classes with spaces. The more your specify the greater chance that the element you want will be the most specific. See