Disable inline editing on second column
Disable inline editing on second column
bpernikoff
Posts: 4Questions: 1Answers: 0
Is it possible to disable inline editing on other columns besides the first one (:first-child)?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
This example shows one way to control which columns are inline editable:
https://editor.datatables.net/examples/inline-editing/columns.html
If you prefer the jQuery selectors you can do something like this:
$('#myTable').on( 'click', 'tbody td:not(:first-child, :nth-child(2))', function (e) {
Kevin
Thanks! This syntax: :not(:first-child, :nth-child(2)) was exactly what I was looking for. The example provided using className also worked!