title: Editorfor checkbox field onclick
body: <p>I have an editorfor field that is a checkbox and when it is changed from false to true and the form is submitted i need to track that the checkbox was changed and is marked true. Also it has to be a javascript or jquery function.</p>
  
  <pre><code>&lt;div class="editor-field"&gt;
  @Html.EditorFor(model =&gt; model.IsPublic)
  
  &lt;/div&gt; 
  </code></pre>
  
  <p>If i need to explain this better please tell me. I just cant think of how else to explain.Thanks</p>