How do I select these children divs
<p>I'm trying to alert the ids of each of these divs so it output <code>11 25 78</code>. </p>

<pre><code>&lt;div id="main"&gt;
  &lt;div id="section-11"&gt;Some content&lt;/div&gt;
  &lt;div id="section-25"&gt;Some content&lt;/div&gt;
  &lt;div id="section-78"&gt;Some content&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>I've already selected <code>main</code> and I'm trying to use <code>children</code> but it's not working. Not sure why.</p>

<pre><code>$('#main').children().each(function(){
   alert($(this).attr('id'));
});
</code></pre>
