jQuery after() and insertAfter() example

Last updated on March 22nd, 2017 at 10:12 am

Previous
Next
In this post,  we are going to see jQuery after and insertAfter methods.

Both do the same task, insert text or html after every selected elements but syntax is quite different.

Syntax for after():

inserting using after

Syntax for insertAfter() :

inserting using insertAfter

Let’s understand with the help of example:

Live demo: Jquery after and insertAfter example example on jsbin.com

Previous
Next

Join Our News Letter - Stay Updated

Subscribe to Awesome Java Content.

Add Comment

Join Our News Letter - Stay Updated

Subscribe to Awesome Java Content.
You can like our facebook page Java2blog