title: gettings values from checkbox group with jQuery only works once
body: <p>I'm trying to build an Array of the values of all selected checkboxes in a group (I have more than one checkbox group on this page, but below is one of them).</p>
  
  <p>When I click on a checkbox I first get an alert with value of '0' and then an alert with value of '1'. This is as expected.
  However, when I check a 2nd checkbox the alert no longer shows up. I also don't see any errors in my Chrome console.</p>
  
  <p>Why?</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>    &lt;table id="CPHCenter_cblFeatures" class="cblist textbox" style="width:100%;"&gt;
          &lt;tbody&gt;
              &lt;tr&gt;
                  &lt;td&gt;
                  &lt;input id="CPHCenter_cblFeatures_0" type="checkbox" name="ctl00$CPHCenter$cblFeatures$0" onclick="javascript:setTimeout('__doPostBack(\'ctl00$CPHCenter$cblFeatures$0\',\'\')', 0)" value="6"&gt;
                  &lt;label for="CPHCenter_cblFeatures_0"&gt;Arbor&lt;/label&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;input id="CPHCenter_cblFeatures_4" type="checkbox" name="ctl00$CPHCenter$cblFeatures$4" onclick="javascript:setTimeout('__doPostBack(\'ctl00$CPHCenter$cblFeatures$4\',\'\')', 0)" value="7"&gt;&lt;label for="CPHCenter_cblFeatures_4"&gt;Disabled access&lt;/label&gt;&lt;/td&gt;
              &lt;/tr&gt;&lt;tr&gt;
                  &lt;td&gt;&lt;input id="CPHCenter_cblFeatures_1" type="checkbox" name="ctl00$CPHCenter$cblFeatures$1" onclick="javascript:setTimeout('__doPostBack(\'ctl00$CPHCenter$cblFeatures$1\',\'\')', 0)" value="3"&gt;&lt;label for="CPHCenter_cblFeatures_1"&gt;Beach&lt;/label&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;input id="CPHCenter_cblFeatures_5" type="checkbox" name="ctl00$CPHCenter$cblFeatures$5" onclick="javascript:setTimeout('__doPostBack(\'ctl00$CPHCenter$cblFeatures$5\',\'\')', 0)" value="4"&gt;&lt;label for="CPHCenter_cblFeatures_5"&gt;Forest&lt;/label&gt;&lt;/td&gt;
              &lt;/tr&gt;&lt;tr&gt;
                  &lt;td&gt;&lt;input id="CPHCenter_cblFeatures_2" type="checkbox" name="ctl00$CPHCenter$cblFeatures$2" onclick="javascript:setTimeout('__doPostBack(\'ctl00$CPHCenter$cblFeatures$2\',\'\')', 0)" value="1"&gt;&lt;label for="CPHCenter_cblFeatures_2"&gt;Bridal suite&lt;/label&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;input id="CPHCenter_cblFeatures_6" type="checkbox" name="ctl00$CPHCenter$cblFeatures$6" onclick="javascript:setTimeout('__doPostBack(\'ctl00$CPHCenter$cblFeatures$6\',\'\')', 0)" value="2"&gt;&lt;label for="CPHCenter_cblFeatures_6"&gt;Garden&lt;/label&gt;&lt;/td&gt;
              &lt;/tr&gt;&lt;tr&gt;
                  &lt;td&gt;&lt;input id="CPHCenter_cblFeatures_3" type="checkbox" name="ctl00$CPHCenter$cblFeatures$3" onclick="javascript:setTimeout('__doPostBack(\'ctl00$CPHCenter$cblFeatures$3\',\'\')', 0)" value="5"&gt;&lt;label for="CPHCenter_cblFeatures_3"&gt;Dancing room&lt;/label&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;input id="CPHCenter_cblFeatures_7" type="checkbox" name="ctl00$CPHCenter$cblFeatures$7" onclick="javascript:setTimeout('__doPostBack(\'ctl00$CPHCenter$cblFeatures$7\',\'\')', 0)" value="8"&gt;&lt;label for="CPHCenter_cblFeatures_7"&gt;Water&lt;/label&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  </code></pre>
  
  <p><strong>jQuery</strong></p>
  
  <pre><code>     function getresults() {           
           var arr = new Array();
           $.each($("input[name*='cblFeatures']:checked"), function () {
               arr.push($(this).val());
           });
  
           alert(arr.length);
           arr = new Array();
           return true;
       }
  
  
  
       $(document).ready(function () {
           $("#&lt;%=cblFeatures.ClientID%&gt;").click(function () { getresults(); });
           });
  </code></pre>