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
Mohsin Arif
295
6k
137.8k
How can i get checked row value ?
Jan 7 2020 11:13 PM
hello guys,
i have a datable checkbox, i wan on submit get the values of all checked rows, below is my code.
function populatetbl(data) {
tableName
= $('#userTable').DataTable({
"data": data,
'columns': [
{
"render": function (data, type, row, meta) {
var
checkbox
= $("
<
input
/>
", {
"type": "checkbox"
});
if (row[2] === "enable") {
checkbox.attr("checked", "checked");
checkbox.addClass("checkbox_checked");
} else {
checkbox.removeAttr("checked");
checkbox.addClass("checkbox_unchecked");
}
return checkbox.prop("outerHTML")
}
},
{
"render": function (data, type, row, meta) {
return row[0];
}
},
{
"render": function (data, type, row, meta) {
return row[1];
}
}
],
order: []
});
}
and want to get value of second coloum(Menu) attached piture.
Reply
Answers (
1
)
Bitcoin C# .NET API
NPOI Library is Open Source? or have MIT licence?