title: Javascript get all direct children
body: <p>I need to get all the direct children of an element. As it is here:</p>
  
  <pre><code>&lt;div class='1'&gt;
      &lt;div class='2'&gt;
          &lt;div class='3'&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class='2'&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I need the two DIVs with class "2" using the one with class "1". Plain JavaScript - no libraries.</p>
  
  <p>(They are the same class in this example just to be more clear. In my need they are with different, unknown classes.)</p>