title: Tracking the order checkboxes are checked
body: <p>I have a dynamically created table that is filled with rows and columns of checkboxes.<br>
  Their unique id's are dynamically created as well.<br>
  I would like to store the order that the checkboxes are checked by the user in the checkboxs' values.<br>
  If a checkbox is unchecked, its value should be reset to "" or to "0".</p>
  
  <p>It doesn't matter how many times a checkbox is checked and unchecked.<br>
  I only need the ultimate order, so an incrementing variable should work fine.</p>
  
  <p>For example:</p>
  
  <ul>
  <li>There are checkbox1 - checkbox10 and all their values are initially set to "".<br></li>
  <li>If the user first clicked on checkbox3 its value would be set to "1".<br></li>
  <li>If the user then clicked on checkbox5 its value would be set to "2".<br></li>
  <li>If the user then clicked on checkbox8 its value would be set to "3".<br></li>
  <li>If checkbox3 and checkbox5 were unclicked, their values would be reset to "".<br></li>
  <li>If checkbox3 were checked yet again its value would be set to "4".<br></li>
  <li>It would not matter that there was no checkbox with a value of 1 or 2.<br></li>
  </ul>