title: Add "checked' property to checkbox in jquery
body: <p>So I have no problem actually setting checkboxes as checked, however in my current case I need to actually add the "checked" property to the checkboxes, as the system I'm working in literally grabs the HTML from the DOM.</p>
  
  <p>I can set the checkbox to be checked, however as there's no identifying "checked" property when the HTML gets inserted again it doesn't hold the property so all checkboxes come back unchecked :(</p>
  
  <p>is there a way to add and remove 'checked' as a property so it will be apparent from the raw HTML what boxes are checked? e.g.</p>
  
  <p>unchecked box</p>
  
  <pre><code>&lt;input type="checkbox" value="yes" /&gt;
  </code></pre>
  
  <p>checked box</p>
  
  <pre><code>&lt;input type="checkbox" checked value="yes" /&gt;
  </code></pre>
  
  <p>Appreciate any help!!</p>