I am using jquery datatable in one of my projects which have two columns (Qty, Rate) containing input fields in each row. When cursor focus to first column(Qty) input field in first row and press enter, it successfully focus to the next input field in the same first row. But when I select an input field in the second or third row in Qty column and press enter, it again focus to the first row in Rate column.
What I required is to focus to the very next input field in the same current row. Any help would be greatly appreciated.
Please have a look on my uploaded video to understand better.
$(document).ready(function () {
$('#save-stage').DataTable({
"tabIndex": 1,
keys: true,
"destroy": "true",
"bSort": false,
"scrollY": "300px",
"scrollX": false,
"scrollCollapse": true,
paging: false,
searching: false,
info: false
});
});
$('#save-stage').on('keydown', function (ev) {
$(this).find("td:eq(5) input[type='text']").focus();
});