title: Getting id of checkboxes selected using jquery
body: <p>I'm trying to get the id's of the checkboxes with the class <code>file-selection-id</code>. The checkbox is inside a for loop which is why I have placed variables on the id's and names.</p>
  
  <pre><code>&lt;input class="file-selection-id" type="checkbox" value="" name="file&lt;?php echo $i; ?&gt;_&lt;?php echo $t; ?&gt;" id="file&lt;?php echo $i; ?&gt;_&lt;?php echo $t; ?&gt;"&gt;
  </code></pre>
  
  <p>What I want is that when I click a button, it would get all of the id's of the selected checkboxes.</p>
  
  <pre><code>$('.move-file-buttons').click( 
  function(event) { 
    //??? 
  $('input:checkbox.file-selection-id').each(function () {
  
    });
       });
  </code></pre>
  
  <p>But I don't know how to get the Id's of all the checkboxes that were on the file-selection-id class that I need? What could be ways on how I could call the ID's of the checkboxes(for example if I had 4 checkboxes with 2 selections)?</p>