You can use the .replaceWith() method to replace one div with another div. For example: $("#sourceDiv").replaceWith("#targetDiv"); Note: The .replaceWith() method completely replaces the selected element with the specified element, so in this case, the #sourceDiv element would be removed.