在forloop中未通过视觉检查单选按钮

时间:2019-01-16 02:26:33

标签: c# asp.net-mvc razor

(对不起,MVC是前端的新功能) 单选按钮没有进行视觉检查,但值确实存储在变量中。

在以下示例中。 x.SkillFinderReferralSource显示正确,并且确实检查了单选按钮并存储了值

但是,当我尝试选择x.RoleModels [i] .Shortlisted的任何按钮时,它不会显示黑点(“视觉上”选择了单选按钮),但值确实存储在x.RoleModels [i]中入围 有人知道吗? 非常感谢

                    <label class="radio">@Html.RadioButtonFor(x => x.RoleModels[i].Shortlisted, "Shortlisted")Shortlisted</label>
                    <label class="radio">@Html.RadioButtonFor(x => x.RoleModels[i].Shortlisted, "Shortlisted")Don't know</label>

                    <label class="radio">@Html.RadioButtonFor(x => x.SkillFinderReferralSource, "SkillFinderReferralSource")SkillFinderReferralSource</label>
                    <label class="radio">@Html.RadioButtonFor(x => x.SkillFinderReferralSource, "SkillFinderReferralSource")SkillFinderReferralSource2</label>

0 个答案:

没有答案
相关问题