Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82604

Run AJAX on row selection with keyboard data row selection

$
0
0

Description of problem:

I have data tables with server-side configured.
I can load data for detailed view with a click on a specific row, when click AJAX will pull data and show in the window.

How can I load data or run AJAX by keyboard up-down arrow keys? This means when I move to the next record it should run AJAX.

Currently, I am running AJAX as below with click.

        $(document).on(
            "click",
            "#myTable tbody td:not(:first-child)",
            function() {
                var rowdata = $("#expensesTable")
                    .DataTable()
                    .row($(this).parents("tr"))
                    .data();
                jQuery.ajax({.....


Viewing all articles
Browse latest Browse all 82604

Latest Images

Trending Articles



Latest Images