insertafter javascript jquery code example Example: insertafter jquery $( "<p>Test</p>" ).insertAfter( ".inner" );