Invert order of HTML elements
        Posted  
        
            by meo
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by meo
        
        
        
        Published on 2010-04-21T14:56:13Z
        Indexed on 
            2010/04/21
            15:03 UTC
        
        
        Read the original article
        Hit count: 411
        
jQuery
I have the following configuration:
<div><div id='box1'> </div><div id='box2'> </div><div id='box3'> </div><div id='box4'> </div></div>
what i need to do is to invert the order of the divs
<div><div id='box4'> </div><div id='box3'> </div><div id='box2'> </div><div id='box1'> </div></div>
is there a fast way to do this with jQuery without cloning, removing and replacing the items?
© Stack Overflow or respective owner