Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
.after()ボタンをクリックしたときにページに html を追加するために を使用しています。しかし、html を追加すると、最初の場所をスキップして 2 番目の場所に行きたいと思います。
.after()
$(this).after(newtemplate);
.after()基本的に+1したい
あなたが探しているのは だと思いますappend(newtemplate)。
append(newtemplate)
http://api.jquery.com/append/