Moja struktura HTML jest tak:Jak przenieść element HTML w jQuery?
<div id="parent">
<div id="1">Some content</div>
<div id="2">Some content</div>
</div>
Chcę przenieść element id="2"
umieścić przed id="1"
więc jej będzie tak:
<div id="parent">
<div id="2">Some content</div>
<div id="1">Some content</div>
</div>
Jak mogę zrobić coś podobnego w jQuery ?
@rahul - są nieprawidłową * w HTML4 *, być jasne, że biorąc pod uwagę zmiany lately;) –
@rahul: Identyfikator jest po prostu tylko na przykład :), prawdziwa oczywiście nie skrypt. – GusDeCooL