title: How do I get the state of a checkbox in a MDL table?
body: <p>I generate the table from user inputted data, the user can change the data after the page has loaded and I have to adjust the checkboxes accordingly (regenerating the code)</p>
  
  <p>I'm trying to:</p>
  
  <ul>
  <li>Call a JS function when a checkbox is ticked</li>
  <li>Be able to get states of every one checkbox individually (list of all checkboxes and their values also applicable)</li>
  <li>Set the values of every individual checkbox</li>
  </ul>
  
  <p>I didn't see a way to do it, because in the source code, there are no checkboxes - only the table setting. Thus, I'm unable to set every individual checkbox its ID.</p>
  
  <p>I wonder, is it possible to: get the code that is generated when the browser loads my page and the code the JS generates and serve it to straight from the server generated, but with individual IDs for every checkbox? In this case, how would I get the state of a checkbox?</p>
  
  <p>If anything is unclear, feel free to ask for details.</p>
  
  <p>Thanks in advance.</p>