3 ms·
It's not that more complicated. There are after()/before()/closest()/remove(), and a lot of other similar easy to use methods these days. It's not el.parentNod
by megous 6y ago
It's not that more complicated. There are after()/before()/closest()/remove(), and a lot of other similar easy to use methods these days.
It's not el.parentNode.insertBefore(new, el) and el.parentNode.removeChild(el) days anymore.