How do I change my div at the end of the holder div? Here's my:
& lt; Div id = "container" & gt; & Lt; Div id = "content1" & gt; My Text1 & lt; / Div & gt; & Lt; Div id = "content2" & gt; My Text2 & lt; / Div & gt; & Lt; Div id = "content3" & gt; My Text 3 & lt; / Div & gt; & Lt; / Div & gt;
And I want to put my content1 at the end with Javascript (or JQuery):
attach
will always take the element to the last position In the original element
$ ('# container'). Attachments ($ ('# content1'));
Or even move the first element to the previous state
$ ('# container'). Attachments (work () (return $ (this). Child (). First ();});
No comments:
Post a Comment