lundi 25 juin 2018

get checkbox value datatables pagination

Help second page checkbox value get. i cant get value checkbox.jsfiidle link is here . help guys :)

$(document).ready(function () {
    var table = $('#example').DataTable({});

    // Handle click on "Select all" control
    $('#example-select-all').on('click', function () {
        // Check/uncheck all checkboxes in the table
        var rows = table.rows({ 'search': 'applied' }).nodes();
        $('input[type="checkbox"]', rows).prop('checked', this.checked);
    });
});

$("#gg").click(function () {
    $("input:checkbox[class=chk]:checked").each(function () {
        alert($(this).val());
    });
});

Visit : https://jsfiddle.net/07Lrpqm7/4089/




Aucun commentaire:

Enregistrer un commentaire