<div style="overflow-x:auto;">
<table id="customers">
<caption><h3>Assign Privileges</h3></caption>
<tr>
<th>Modules</th>
@foreach (var action in ViewBag.AllAction)
{
<th>@action.Action_name</th>
}
<th></th>
</tr>
@foreach (var data in ViewBag.allmodel)
{
<tr>
<td>@data.Controller_Name</td>
@foreach (var ac in ViewBag.AllAction)
{
<td>
<input type="checkbox" class="allchkbox" />
</td>## `Heading` ##
}
</tr>
}
</table>
This is my code.I have a checkbox in a loop thats why i cant find which checkbox is checked.In this view i want to know which row and column checkbox is checked.I want id each row and column that checkbox is checked.