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

38 Views Asked by At

I am using the .after() for adding some html to my page when I click a button. But when I add the html I want to skip the first place and go to the second.

$(this).after(newtemplate);

Basically I want .after() +1

1

There are 1 best solutions below

3
Hugo Buff On

I believe what you're looking for is append(newtemplate).

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