add an index to jquery element creation code example Example: jquery append element to body $( ".inner" ).append( "<p>Test</p>" );