Using checkbox data value to display datatable

Using checkbox data value to display datatable

tyy007tyy007 Posts: 1Questions: 1Answers: 0

Hi! Kinda new to DataTables and i just wanna know how to solve my current problem. So here it goes;
I successfully displayed a dynamic datatable with checkboxes and what i want to do is get the value of the selected checkboxes to display another datatable by using it on my where clause.

This is the code/variable in which value i want to use.

  // Iterate over all selected checkboxes
  $.each(rows_selected, function(index, rowId){
     // Create a hidden element 
     $(form).append(
         $('<input>')
            .attr('type', 'hidden')
            .attr('name', 'id[]')
            .val(rowId)
     );
     $(form).append(
         $('<input>')
            .attr('type', 'hidden')
            .attr('name', 'ctr')
            .val('mens')
     );
  });
This discussion has been closed.