1
How do in javascript the same equivalent function in jquery after?
I want to add one div right after the other, 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 javascript. Someone can help me?
Excellent, thank you!
– Thiago