jQuery plug-in used to swap the position or zIndex property of two or more elements inside your DOM.
-
Swap the selected element with the target element
$("#myDiv").swapWith("#myTargetDiv");
-
Revert the order of the selected element's children
$("#myDivWithChildren").swapGroup();
-
Swap the zIndex property of two elements
$("#myDiv").swapZIndex("#myTargetDiv");