title: how to check/uncheck checkbox by using value in query
body: <p>HTML CODE:</p>
  
  <pre><code>&lt;form id="myform"&gt;
   &lt;input type='checkbox' name='foo[]' value='1'&gt;
   &lt;input type='checkbox' name='foo[]' checked='true' value='2' &gt;
   &lt;input type='checkbox' name='foo[]' value='3' &gt;
   &lt;input type='checkbox' name='foo[]' checked='true' value='4' &gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>JS CODE:</p>
  
  <pre><code>$('input[name=foo]:checked').each(function(i,el){
      if(clusterVal == 'ALL')
          {
              /* what do I have to do here? */
          }
      array.push($(el).val());
  });
  </code></pre>
  
  <p>how to check/uncheck checkbox by using value in query</p>