title: Get particular child node class name javascript
body: <p>I want to get particular child node(i.e. i want only div). how can i do this. This is my code</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="test"&gt;
          &lt;input type="text"&gt;
          &lt;div class="nod1"&gt;&lt;/div&gt;
          &lt;input type="text"&gt;
          &lt;div class="nod2"&gt;&lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
      &lt;script&gt;
      var tst=document.getElementById('test');
      var childrens=tst.children;
      for(var i=0; i&lt;childrens.length; i++){
          console.log(childrens[i]);
      }
      &lt;/script&gt;
  &lt;/html&gt;
  </code></pre>