Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript insertAfter Reply To: insertAfter

#185010
__
Participant

read about previousSibling / nextSibling.

If it has neither (i.e., is an only child), you can use the parentElement.