title: How to set default checkbox status with javascript?
body: <p>I am used to doing this in jQuery </p>
  
  <pre><code>$('#RememberMe').attr('checked', true); 
  </code></pre>
  
  <p>but I can't remember how to do it in Javascript I thought that </p>
  
  <pre><code>document.getElementById("RememberMe").value = "True"; 
  </code></pre>
  
  <p>would work, but it doesn't, it changes the value but does not create the visual check on the html.</p>
  
  <p>I am trying to set the checkbox to on by default. here is the html</p>
  
  <pre><code>&lt;input id="RememberMe" name="RememberMe" type="checkbox" value="false" /&gt;   
  </code></pre>