swapping the content across DIV elements not working
I have some set of div elements as follows,
<div class="parentCell_1">
<div class="children"></div>
<div class="children"></div>
<div class="children"></div>
</div>
<div class="parentCell_2">
<div class="children"></div>
<div class="children"></div>
<div class="children"></div>
</div>
I have script for swapping the content of children elements with irrespective of the parents it works fine until the parent element itself is swapped, after swapping the parentCell_1 and parentCell_2 divs, the swapping functionality is totally lost for the children. I have tried giving the methods like stopPropagation method, cancelBubble method for the parent cell but still not working as expected, Could someone help me about what the exact problem .. where the things are really missing ? Please help me out on this.
|