如何使用键盘箭头键操作Datatable(jQuery插件)的行。我已经做了一些工作
但我不知道如何在行之间操作光标。
var oTable;
$("#customerdata tbody").click(function(event) {
$(oTable.fnSettings().aoData).each(function (){
$(this.nTr).removeClass('row_selected');
});
var row = $(event.target.parentNode);
row.addClass('row_selected');
var custid=row.find('td:first').text();
if(custid!="No data available in table"){
$('#cust_id').val(custid);
$('#customerdata_filter input').val('');
$("#editmodal").dialog("close");}
});
oTable = $("#customerdata").dataTable({
"bJQueryUI": true,
"bLengthChange": false,
"bPaginate": false,
"sPaginationType": "full_numbers",
"bProcessing": true,
"bServerSide": true,
"sScrollY": "260px",
"sAjaxSource": "/SrikanthTest/customer.do?type=showMinCustomerDetails"
});
但我不知道如何在行之间操作光标。