insertafter div close found if id jquery code example Example: insertafter $( "Test" ).insertAfter( ".inner" );