相关疑难解决方法(0)

POST未经检查的HTML复选框

我有一大堆默认选中的复选框.我的用户可能会取消选中一些(如果有的话)复选框,然后选中其余部分.

有没有什么办法,使表单POST所复选框检查,而不是的那些选中?

html forms checkbox post

283
推荐指数
17
解决办法
36万
查看次数

asp.net mvc:为什么Html.CheckBox会生成额外的隐藏输入

我只是注意到Html.CheckBox("foo")产生2个输入而不是1个输入,任何人都知道为什么会这样?

<input id="foo" name="foo" type="checkbox" value="true" />
<input name="foo" type="hidden" value="false" /> 
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc

207
推荐指数
7
解决办法
7万
查看次数

标签 统计

asp.net-mvc ×1

checkbox ×1

forms ×1

html ×1

post ×1