TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Shubham Agarwal
NA
32
594
How i know which checkbox is checked.
May 1 2018 12:47 AM
I have a checkbox in a loop so how i know which checkbox is checked.
<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>
}
</tr>
}
</table>
</div>
This is my code i have checkbox with same class . this is my view .i want to check that which module checkbox ix checked
Reply
Answers (
4
)
Jquery form validation
How to use window.location.href in component.ts