title: jQuery serialize checkboxes that are dynamically created from MySQL
body: <p>I create rows in a <code>HTML</code> table dynamically from <code>MySQL</code> values in a <code>PHP</code> loop. Each row represents a row in <code>MySQL</code> and are identified by an id.</p>
  
  <p>I want to be able to have a <code>&lt;input type='checkbox'&gt;</code> on each row and have a "Delete selected rows" button at the bottom row. </p>
  
  <p>My question is how I should <code>POST</code> the selected checkboxes and how to identify them in the <code>PHP</code>- file.</p>
  
  <p>I have this script to <code>serialize</code> <code>&lt;input type='text'&gt;</code> fields:</p>
  
  <pre><code>function serealizeInputs (input)
      {
          var array = [];
          input.each(function(){ array.push($(this).val()) });
          return array;
      }
  var value = serealizeInputs($('.my_input_field'));
  </code></pre>
  
  <p>How can I write a similar for checkboxes?</p>
  
  <p>I'm quite new to this as you might see. Let me know if you need to see some more code.</p>