title: Add second child of li element in existing ul
body: <p>I am trying to add second and third <code>li</code> element in my existing <code>ul</code>. But not properly done.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$("ul li:nth-child(2)").append($("&lt;li&gt;").text("ADDDED TEST 5"));
  $("ul li:nth-child(3)").append($("&lt;li&gt;").text("ADDDED TEST 6"));</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  
  
  &lt;div class="a_rgt"&gt;
    &lt;ul&gt;
      &lt;li&gt;TEST1&lt;/li&gt;
      &lt;li&gt;TEST2&lt;/li&gt;
      &lt;li&gt;TEST3&lt;/li&gt;
      &lt;li&gt;TEST4&lt;/li&gt;
    &lt;/ul&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>