checkboxFor renders the following for a checkbox:
<input id="IsCredit" name="IsCredit" type="checkbox" value="true" />
<input name="IsCredit" type="hidden" value="false" />
In javascript,
$('#IsCredit').val();
is ALWAYS true. Whether ticked or unticked
How can I determine if the checkbox has been ticked in Javascript?