title: Check Checkboxes based on values in an Array
body: <h1>Checkbox check with Array or values</h1>
  <p><strong>Html Code:</strong></p>
  <pre><code>&lt;div id=&quot;weekdays&quot;&gt;
  &lt;label for=&quot;saturday&quot;&gt;  Saturday    &lt;/label&gt;&lt;input type='checkbox' name='week_day[]' value='saturday'  id=&quot;saturday&quot;&gt;   
  &lt;label for=&quot;sunday&quot;&gt;    Sunday      &lt;/label&gt;&lt;input type='checkbox' name='week_day[]' value='sunday'    id=&quot;sunday&quot;&gt; 
  &lt;label for=&quot;monday&quot;&gt;    Monday      &lt;/label&gt;&lt;input type='checkbox' name='week_day[]' value='monday'    id=&quot;monday&quot;&gt; 
  &lt;label for=&quot;tuesday&quot;&gt;   Tuesday     &lt;/label&gt;&lt;input type='checkbox' name='week_day[]' value='tuesday'   id=&quot;tuesday&quot;&gt;    
  &lt;label for=&quot;wednesday&quot;&gt; Wednesday   &lt;/label&gt;&lt;input type='checkbox' name='week_day[]' value='wednesday' id=&quot;wednesday&quot;&gt;  
  &lt;label for=&quot;thursday&quot;&gt;  Thursday    &lt;/label&gt;&lt;input type='checkbox' name='week_day[]' value='thursday'  id=&quot;thursday&quot;&gt;   
  &lt;label for=&quot;friday&quot;&gt;    Friday      &lt;/label&gt;&lt;input type='checkbox' name='week_day[]' value='friday'    id=&quot;friday&quot;&gt; 
  </code></pre>
  
  <p><strong>Array</strong></p>
  <pre><code>var f = [&quot;saturday&quot;, &quot;sunday&quot;, &quot;monday&quot;] 
  </code></pre>
  <p><strong>info</strong>
  I wanna check the days saturday, sunday and monday on this form</p>