on click of checkbox in data table how to get row data

on click of checkbox in data table how to get row data

pravspravs Posts: 29Questions: 4Answers: 0

on click of checkbox in data table how to get row data. I found on click of tr we are getting table row data but on click of check box iam not getting row data .. please help me out

Replies

  • bindridbindrid Posts: 730Questions: 0Answers: 119
    edited July 2017
    $("#example").on("click", "input[type='checkbox']", function(){
        var tr = $(this).closest("tr");
        var row = $("#example").DataTable().rows(tr);
    });
    
This discussion has been closed.