title: jquery multiple checkboxes - selector not working
body: <p>
      
      
      </p>
  
  <p>I have tried to do a test:</p>
  
  <pre><code>var test = Array();
  
  $('input[name=first_category[]]:checked').each(function()
  {
      test.push($(this).val());
  });
  
  alert(test);
  </code></pre>
  
  <ol>
  <li>Check the last checkbox.</li>
  <li>Refresh the page.</li>
  <li>Alert should be empty (but is not empty, it shows me 4).</li>
  </ol>
  
  <p>I have 5 categories and each category contains more than 10 checkboxes.</p>