title: get id of all checked checkboxes in a div
body: <p>I am attempting to dynamically append checkboxes inside a div. </p>
  
  <p>I want a javascript function to do the following :</p>
  
  <ul>
  <li>When I check a checkbox: add its id to an array.</li>
  <li>When I uncheck a checkbox: remove the id from that array.</li>
  </ul>
  
  <p>This is what I've done so far:</p>
  
  <pre><code>var chkArray = [];
  $(".Checked:checked").each(function () {
      chkArray.push($(this).attr("id"));
  });
  var selected;
  selected = chkArray.join(',') + ",";
  if (selected.length &gt; 1) {
      return chkArray;
  }
  </code></pre>