title: Make a checkbox checked or unchecked based on the value?
body: <p>How can we make a checkbox checked or unchecked programatically based on the value? That is to say, for a particular user if the value is true, the checkbox should be checked, else if the value is false the checkbox needs to be unchecked. I declared the checkbox in the following way:</p>
  
  <pre><code>&lt;input type="checkbox" class="checkbox"&gt;
  </code></pre>