我使用RadioButtonFor如下:
但是这个单选框已经被"选中"了,怎么才能将其禁用?
@Html.RadioButtonFor(m => m.Content, Model.Content, new { @name = "rb", @class = "answer-radio", @id = "answer-" + Model.Counter,@checked = "false" })
@Html.Label(Model.Content, new { @for = "answer-" + Model.Counter })
@Html.HiddenFor(m => m.Content)
但是这个单选框已经被"选中"了,怎么才能将其禁用?
true
,那么我相信它会覆盖@checked = "false"
。 - ChrisF