My submit.cshtml is:
<table id="scDetails" class="table">
<thead>
<tr>
<th>Item</th>
<th>IsChecked</th>
<th>Comment</th>
</tr>
</thead>
<tbody>
@Html.EditorFor(m => m.Fbacks)
</tbody>
</table>
EditorTemplate is for - @Html.EditorFor(m => m.Fbacks) (Fbacks.cshtml)
<tr>
<td>@Html.HiddenFor(m => m.Item)
@Html.DisplayFor(m => m.Item)
</td>
<td>@Html.CheckBoxFor(m => m.IsChecked)</td>
<td>@Html.TextBoxFor(m => m.Comment)</td>
</tr>
What I need is:
When I check the checkbox, textbox should be enabled and when uncheck, textbox should disabled.
jQueryare you using?