-1
我如何管理我的下拉列表禁用/ readOnly的 這是我的代碼:Html.Dropdownlist禁用/只讀
foreach (var item in Model.TranscriptData.Transcript.Where(s => s.TermNo == termItem && s.InsteadOfLessonNo == null).ToList())
{
@Html.DropDownList("LetterGradeValue", new SelectList(grade, "Value", "LetterGrade", string.Format("{0};{1};{2}", coefficient, letterGradeTypeId, letterGrade)), "-", new { @onchange = "ChangeValues(" + counter + ");", @class = counter })
}
新{@class =「form-control」,@ disabled =「disabled」}) –
它不起作用。 –
然後問題是其他地方 –