swapping <div> ?

Posted by kiran on Stack Overflow See other posts from Stack Overflow or by kiran
Published on 2011-02-06T06:33:23Z Indexed on 2011/02/06 7:25 UTC
Read the original article Hit count: 146

Filed under:

this is my sample code

<div id="id-1"><div>sampledata</div><span>sampledata</span></div> 
<div id"id-2"><div>sampledata</div><div> smpledata</div></div>
<div id"id-3"><div>sampledata</div><div> smpledata</div></div>
<div id"id-3"><div>sampledata</div><div> smpledata</div></div>

i'm having the id of only one div(for example id-3) . i want to swap that <div> with next <div>, since there is more than one <div> inside a <div> i cant use a next() .

thanks in advance

© Stack Overflow or respective owner

Related posts about jquery-ui