I have this HTML
Label Here 5条回答 我在风中等你 (楼主) 2020-12-30 10:09 You can do this $('.control div:nth-child(2)').remove(); $('.control div:nth-child(3)').remove(); $('.control div:nth-child(4)').remove(); Or you can do this as well $('.control div:nth-child(1)').siblings().remove(); 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
You can do this
$('.control div:nth-child(2)').remove(); $('.control div:nth-child(3)').remove(); $('.control div:nth-child(4)').remove();
Or you can do this as well
$('.control div:nth-child(1)').siblings().remove();