insert after last of query select all javascript code example Example: jquery insert after $( "<p>Test</p>" ).insertAfter( ".inner" );