title: jQuery loop through Child divs
body: <pre><code>&lt;div id="ChosenCategory" class="chosen"&gt;
     &lt;div class="cat_ch" name="1"&gt;
     &lt;div class="cat_ch" name="2"&gt;
     &lt;div class="cat_ch" name="3"&gt;
     &lt;div class="cat_ch" name="5"&gt;
     &lt;div class="clear"&gt; &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to loop though <code>div.cat_ch</code> How?</p>
  
  <p>This one fails:</p>
  
  <pre><code>    $("div").each(function () {
         alert("FW");
         alert($(this).attr("name").val());
      });
  </code></pre>