1
I have a table html with 3 columns and 3 rows and when I select, for example radio button of line number 2 the line number 1 unchecks.
@if (Model != null && Model.Tabela1!= null && Model.Tabela1.Count > 0)
{
for (int i = 0; i < Model.Tabela1.Count; i++)
{
<table id="tbl" class="table table-bordered table-hover dataTable">
<thead>
<tr role="row">
<th>Inserir</th>
<th>Excluir</th>
<th>Descrição</th>
</tr>
</thead>
<tbody>
<tr role="row" data-row-index="0">
<td data-id="@Model.Tabela1[i].id"><input name="chkSelecionar" id="chkSelecionaInsere" type="radio"/></td>
<td data-id="@Model.Tabela1[i].id"><input name="chkSelecionar" id="chkSelecionaExcluir" type="radio"/></td>
<td>@Model.Tabela1.descricao</td>
</tr>
}
}
</tbody>
</table>
Note: In case it was feasible I could change the Radio button for the Checkbox.
for that there are the checkbox
– user60252