jQuery.swap Usage You can use it by specified parent.childrens element followed by two argument index $("ul li").swap(0, 2) // This will swap arrays of li index 0 with 2 OR Simply swap single DOM with another DOM $("li:first").swap($("li:last"))