Quantcast
Channel: Editor — DataTables forums
Viewing all articles
Browse latest Browse all 3740

When submitting via checkbox, the entire row is submitted instead of just the checkbox and row ID.

$
0
0

I have followed the example https://editor.datatables.net/examples/api/checkbox.html to have a checkbox visible and save when changed. However, when it submits, it sends all columns in the row instead of just the checkbox. What do I need to do to have "submit: 'changed'" for this action?

Here is the code that submits (from the example)

    $('#example').on( 'change', 'input.editor-active', function () {
        editor
            .edit( $(this).closest('tr'), false )
            .set( 'active', $(this).prop( 'checked' ) ? 1 : 0 )
            .submit();
    } );

Viewing all articles
Browse latest Browse all 3740