I have 3 divs want to reverse the order on doucment ready
First Second
This will reverse all divs inside a div with id "div1"
$(function(){ var items=$("#div1 div").toArray(); items.reverse(); $.each(items,function(){ $("#div1").append(this); }); });
Here is the jsFiddle http://jsfiddle.net/bCAVz/8/