177 B
177 B
When we need to insert a piece of HTML somewhere, insertAdjacentHTML
is the best fit.
The solution:
one.insertAdjacentHTML('afterend', '<li>2</li><li>3</li>');