title: jquery automatically check checkbox with values in array
body: <p>I have a table like so</p>
  <pre><code>&lt;table&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;id&lt;/th&gt;
        &lt;th&gt;name&lt;/th&gt;
        &lt;th&gt;age&lt;/th&gt;
        &lt;th&gt;action&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;
        &lt;td&gt;431&lt;/td&gt;
        &lt;td&gt;Ana&lt;/td&gt;
        &lt;td&gt;22&lt;/td&gt;
        &lt;td&gt;&lt;input type=&quot;checkbox&quot; name=&quot;action[]&quot; class=&quot;checkboxes&quot; /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;123&lt;/td&gt;
        &lt;td&gt;tom&lt;/td&gt;
        &lt;td&gt;21&lt;/td&gt;
        &lt;td&gt;&lt;input type=&quot;checkbox&quot; name=&quot;action[]&quot; class=&quot;checkboxes&quot; /&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  <p>I have a jquery array where there some ids stored of those rows example</p>
  <p><code>id= [123,431,213]</code>
  what I want is when my page loads the ids which are inside the array to be already checked</p>
  <pre><code>$(document).ready(function () {
  //code
  
  });
  </code></pre>
  <p>I do not know how to go about this any help would be helpful</p>