gyrocode / jquery-datatables-checkboxes

Checkboxes is an extension for the jQuery DataTables library that provides universal solution for working with checkboxes in a table.
https://www.gyrocode.com/projects/jquery-datatables-checkboxes/
MIT License
150 stars 61 forks source link

Checkbox Selector when not in the first column #109

Closed lenamtl closed 4 years ago

lenamtl commented 4 years ago

Hi,

My table use the second column for the checkbox. I want to select the table row only by the checkbox. How can I change the selector, as from the example this use selector: td:first-child and this won't work because I'm not using the first column

 select: {
        style: multi,
        selector: td:first-child
      },

Ok I figureout using 'selector': 'td:nth-child(2)' https://jsfiddle.net/lenamtl/201ugj7z/1/