在我看来,我有两个字段:出生日期和年龄(单选按钮)。我的视图代码是
<td> @Html.TextBoxFor(m=>m.DateofBirth)</td>
<td> @Html.RadioButtonForEnum(m => m.AgeGroup)</td>当我点击DateofBirth
如何使用MVC4实现这一目标
发布于 2014-07-23 12:40:57
这将是客户端代码,正如标记中所说的jquery,我将给jquery
$("#DateOfBirth").on("click",function(){
$("#AgeGroup").hide();
});其他属性也是如此,或者您可以更改属性来禁用,但更快、更容易和更干净,只需隐藏。
https://stackoverflow.com/questions/24904040
复制相似问题