How to move a div after the next div
How to move a div after the next div. For example, I have 3 different divs.
<div class="div1">Div1</div>
<div class="div2">Div2</div>
<div class="div3">Div3</div>
I want to move the first div after the second div. This means that it div2will be first, and div1will be second. I have the same html format.
I want to execute jquery something like
$(".div1").each(function() {
$(this).appendTo().$(this).after();
});
Let me know if that doesn't make sense.
+5