title: Check pre-selected rows in a jQuery Datatable
body: <p>I have a jQuery DataTable below:</p>
  
  <pre><code>examinees_table = $('#examinees_table').dataTable({
          "bJQueryUI": true,
          "sPaginationType": "full_numbers",
          "aoColumns": [
              /*select*/      null,
              /*id*/          {"bVisible": false},
              /*name*/    null,
              /*course*/  null
          ]
      });
  </code></pre>
  
  <p>And here's my HTML:</p>
  
  <pre><code>&lt;table id="examinees_table"&gt;
                          &lt;thead&gt;
                              &lt;tr&gt;
                                  &lt;th&gt;Select&lt;/th&gt;
                                  &lt;th&gt;ID&lt;/th&gt;
                                  &lt;th&gt;Full Name&lt;/th&gt;
                                  &lt;th&gt;Degree&lt;/th&gt;
                              &lt;/tr&gt;
                          &lt;/thead&gt;
                          &lt;tbody&gt;
                              &lt;?php foreach($users as $user) {?&gt;
                                  &lt;tr&gt;
                                      &lt;?php foreach ($examinees as $examinee) {?&gt;
                                          &lt;?php if($examinee-&gt;examinee_id == $user-&gt;id) {?&gt;
                                              &lt;td class="center"&gt;&lt;?= Form::checkbox('is_examinee-'.$user-&gt;id, null, (bool) true, array('id' =&gt; $user-&gt;id)); ?&gt;&lt;/td&gt;
                                          &lt;?php } else {?&gt;
                                              &lt;td class="center"&gt;&lt;?= Form::checkbox('is_examinee-'.$user-&gt;id, null, (bool) false, array('id' =&gt; $user-&gt;id)); ?&gt;&lt;/td&gt;
                                          &lt;?php } ?&gt;
                                      &lt;td class="center"&gt;&lt;?= $user-&gt;id; ?&gt;&lt;/td&gt;
                                      &lt;td class="center"&gt;&lt;?= $user-&gt;first_name.' '.$user-&gt;last_name; ?&gt;&lt;/td&gt;
                                      &lt;td class="center"&gt;&lt;?= $user-&gt;courses-&gt;description; ?&gt;&lt;/td&gt;
                                      &lt;?php }?&gt;
                                  &lt;/tr&gt;
                              &lt;?php }?&gt;
                          &lt;/tbody&gt;
                      &lt;/table&gt;
  </code></pre>
  
  <p><strong>What I want to do:</strong></p>
  
  <p>I need to load all the registered users from my Users table and check each user in my datatable whose ID is in my Examinees table.</p>
  
  <p>I am updating a list of examinees, so the user can remove(uncheck) existing examinees and add more examinees. I can get the checked rows before submitting the form, but I don't have a way to determine which of the existing examinees were unchecked so I could remove there ID in the Examinees table.</p>
  
  <p>What could be a best approach for this? I don't feel that what I did in my HTML is the best solution. </p>