我有这个单选按钮:
@Html.LabelFor(model => model.Person.Type)
@Html.Label("Type1")
@Html.RadioButtonFor(model => model.Person.Type, "F", new { disabled = "disabled" })
@Html.Label("Type2")
@Html.RadioButtonFor(model => model.Person.Type, "J", new { disabled = "disabled" })
而且,我有这个显示:
@Html.LabelFor(model => model.Person.Field)
@Html.DisplayFor(model => model.Person.Field)
如果在“Type1”(“F”)处选中 RadioButton,我需要一个 javascript 函数来替换这个 Dispay(Person.Field)。我怎样才能做到这一点?