Replacement Flashcards
1
Q
replaceWith
target.replaceWith(element);
A
parent.replaceChild(newChild, oldChild);
jQuery to vanilla JS > Replacement > Flashcards
replaceWith
target.replaceWith(element);
parent.replaceChild(newChild, oldChild);