columnDefs: targets conflicts

columnDefs: targets conflicts

fareezfareez Posts: 1Questions: 1Answers: 0

Hi,

I have many multiple ID's. After I followed the coding preference for scrolling and bootstrap tabs, finally there's some conflicts. How are "conflicts" resolved?

$(document).ready(function() {
        var t = $('#place1, #place2, #place3, #place4, #place5, #place6, #place7, #place8, #place9, #place10, #place11, #place12,    #place13').DataTable( {
        "columnDefs": [ {
            "orderable": true,
            "targets": 0
        } ],
        "order": [[ 1, 'asc' ]]
    } );
    t.on( 'order.dt search.dt', function () {
        t.column(0, {search:'applied', order:'applied'}).nodes().each( function (cell, i) {
            cell.innerHTML = i+1;
        } );
    } ).draw();
} );

Is there a positional preference?.

Answers

  • allanallan Posts: 64,325Questions: 1Answers: 10,622 Site admin

    I have many multiple ID's

    As in duplicate ID's? That isn't valid HTML I'm afraid. In an HTML document an ID must be unique.

    Allan

This discussion has been closed.