add element on first exist in jquery code example Example: prepend element jquery $( ".inner" ).prepend( "<p>Test</p>" );