title: Change the value of a checkbox inline using the onChange attribute
body: <p>Am I doing this wrong or is this impossible? I want to set the value of the checkbox to "0" if unchecked, and "1" if checked</p>
  
  <pre><code>&lt;input type="checkbox" onChange="function() {$(this).val(this.checked? '1': '0')};" /&gt;
  </code></pre>
  
  <p>NOTE: I know how to do it outside of the <code>onChange</code> event or by doing <code>onChange="takeCareOfThis()"</code>, I'm looking to do it all inline</p>