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.