Swaps the positions of two elements in the DOM.
swapElements()
elementA: The first DOM element to swap.
elementA
elementB: The second DOM element to swap.
elementB
swapElements($('#element1'),$('#element2'));
Last updated 11 months ago