How do I make javascript the same equivalent function in jquery after?
I want to add one div right after another, so
<div id="div1"></div>
<div id="div2"></div> <!-- div 2 adicionada via javascript após a divi1 -->
In jquery I use this:
$('#div1').after('<div id="div2"></div>');
But I wanted it in javascript. Can someone help me?