.after()当我点击这个按钮后,第二个,而不是第一个

.after() when i click this button .after the second not the first

本文关键字:第二个 第一个 按钮 after      更新时间:2023-09-26

我使用.after()添加一些html到我的页面,当我点击一个按钮。但是当我添加html时,我想跳过第一个地方,进入第二个地方。

$(this).after(newtemplate);

我想要.after() +1

我相信你要找的是append(newtemplate)

http://api.jquery.com/append/

相关文章: