insert element after jquery code example
Example 1: add div after div jquery
$( "<p>Test</p>" ).insertAfter( $( ".container" ) );
Example 2: jquery insert after
$( "<p>Test</p>" ).insertAfter( ".inner" );
$( "<p>Test</p>" ).insertAfter( $( ".container" ) );
$( "<p>Test</p>" ).insertAfter( ".inner" );