title: Check a checkbox based on list value using jquery
body: <p>I have check box in the form with the following values:</p>
  
  <pre><code>&lt;input type="checkbox" name="role" value="Admin1" /&gt;Admin1&lt;br /&gt;
  &lt;input type="checkbox" name="role" value="Admin2" /&gt;Admin2&lt;br /&gt;
  &lt;input type="checkbox" name="role" value="Admin3" /&gt;Admin3&lt;br /&gt;
  &lt;input type="checkbox" name="role" value="Admin4" /&gt;Admin4&lt;br /&gt;
  </code></pre>
  
  <p>I have a Roles List that is coming from the server side with the values : </p>
  
  <pre><code>Roles
  {
  Admin1
  Admin4
  }
  </code></pre>
  
  <p>Now based on the Roles value the options <code>Admin1</code> and <code>Admin4</code> will be checked in the check box. How can I do this using jQuery? </p>