且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jQuery克隆div并将其附加到特定的div之后

更新时间:2023-09-13 16:55:04

您可以使用clone,然后由于每个div都有一个car_well类,因此您可以使用insertAfter在最后一个div之后插入.

You can use clone, and then since each div has a class of car_well you can use insertAfter to insert after the last div.

$("#car2").clone().insertAfter("div.car_well:last");