In this code I can select it and in the console.log have access to the information, but I do not know how to change it:
$(document).ready(function () {
var oTable = $('#tableproduct').DataTable();
$('#tableproduct tbody').on('click', 'tr', function () {
$(this).toggleClass('selected');
var pos = oTable.row(this).index();
var row = oTable.row(pos).data();
console.log(row);
})
});
I need to change the readOnly property from true to false of the input when selecting the line.