JQuery After

 

In this example, The jQuery after() method inserts content AFTER the selected HTML elements. after() methods can take an infinite number of new elements as parameters

 
 
 
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script> <script> $(document).ready(function(){ $(".btn").click(function(){ $("div").after("<p>Welcome!</p>"); }); }); </script> </head> <body> <button class="btn">Insert element</button> <div>APPWRK IT Solutions is a complete Web Solutions </div> <div>It offers customer-oriented web design .</div> </body> </html>
Output