title: Javascript Html.Checkbox onchange event
body: <p>I tried below event in order to reach onchange of checkbox.</p>
  
  <pre><code> @Html.CheckBox("AutoCalculateMandate", true , new { onchange = "AutoCalculateMandateOnChange" })
  </code></pre>
  
  <p><strong>Javascript:</strong></p>
  
  <pre><code>function AutoCalculateMandateOnChange() {
      alert("working");
  }
  </code></pre>
  
  <p>When i try above javascript code , alert never displays nothing(not working).</p>
  
  <p>How can i enable/disable below input on Html.Checkbox value changed ?</p>
  
  <pre><code>&lt;input type="text" id="LevyFee" class="form-control" data-required="true" "&gt;
  </code></pre>
  
  <p>Any help appreciates.</p>
  
  <p>Thanks.</p>