Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35809

How to get to the first column value

$
0
0

I have a delete button at the end of each row

First column in the table is hidden (server row id) ,

How to I get to the first column value given the TR object?

    $('#example').on('click', 'a.editor_remove', function (e) {
        e.preventDefault();

        var oTableApi = $('#example').dataTable().api();
        var tr = $(this).closest('tr');
        alert(tr.first('td').text()); // return all the columns as one text.

Viewing all articles
Browse latest Browse all 35809

Trending Articles