我的 Edit.cshtml -
<table id="scDetails" class="dataTable">
<thead>
<tr>
<th>RItem</th>
<th>IChecked</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
@foreach (var fback in Model.Fbacks)
{
<tr>
<td>@Html.HiddenFor(m => fback.FItem)
@Html.DisplayFor(m => fback.RItem)
</td>
<td>@Html.CheckBoxFor(m => fback.IChecked)</td>
<td>@Html.TextBoxFor(m => fback.Notes)</td>
</tr>
}
</tbody>
</table>
选中表行上的“iChecked”复选框时,应禁用文本框“Notes”。