add item to beginning and ending with .join jquery code example Example: prepend element jquery $( ".inner" ).prepend( "<p>Test</p>" );