title: nth child in javascript
body: <p>This is my jquery code.I need javascript code to select nth child.Is it possible to select nth child using javascript</p>
  
  <pre><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
       $(document).ready(function(){
         $(".gl-testim-text p:nth-child(2)").click(function(){
            $(".gl-testim-text p:nth-child(3)").show();
         });
       });
  
   &lt;/script&gt;
  </code></pre>