asp.net mvc: why is Html.CheckBox generating an additional hidden input
- by Omu
I just noticed that Html.CheckBox("foo") generates 2 inputs instead of one, anybody knows why is this so ?
<input id="foo" name="foo" type="checkbox" value="true" />
<input name="foo" type="hidden" value="false" />
Note: this checkbox is not checked