title: Get values of selected checkboxes in jQuery
body: <p>I am trying to get an array of selected checkboxes once a submit button has been clicked in jQuery, I can't seem to get anything to show. Code below:</p>
  
  <p>jQuery:</p>
  
  <pre><code>$(".btn").live("click",function () {
      var ffirst = $('input:checkbox[name="first[]"]:checked').map(function () {
          return this.value;
      }).get();
  });
  $.each(ffirst, function(index, value) {
      alert(index + ': ' + value);
  });
  </code></pre>
  
  <p>And HTML below:</p>
  
  <pre><code>&lt;input type="checkbox" value="1" checked="checked" name="first[]"&gt;
  &lt;input type="checkbox" value="2" checked="checked" name="first[]"&gt;
  &lt;input type="button" class="btn" value="Go"&gt;
  </code></pre>
  
  <p>Any help would be appreciated!</p>
  
  <p>Edit: changed per comments, but still broken.</p>