title: how to loop over the child divs of a div and get the ids of the child divs?
body: <p>I have a div with id test</p>
  
  <p>and through the foreach loop I am creating some inner divs inside the test div. So it becomes like this.</p>
  
  <pre><code>&lt;div id="test"&gt;
  &lt;div id="test-1"&gt;&lt;/div&gt;
  &lt;div id="test-2"&gt;&lt;/div&gt;
  &lt;div id="test-3"&gt;&lt;/div&gt;
  &lt;div id="test-4"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I am getting the parent div id "test" in the javascript function. Now I want to loop through the inner divs(child divs) of the test div and get the id of the each div one by one and style them through javascript.</p>
  
  <p>Any Idea about this?</p>