Created
December 30, 2016 11:37
-
-
Save muthu32/786f99701044396853c8840ef3a7bb8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//following script ussed to get data from td of Jquery Datatable. | |
$('#table tbody').on( 'click', 'td', function () { | |
var data = table.cell(this).data(); //td element data | |
var column = table.cell( this ).index().column; //column index | |
var row = table.row( this ).index(); // Row index | |
var rowid = $(this).closest('tr').attr('id'); //Get Row Id | |
var columnvisible = table.cell( this ).index().columnVisible //visble column index | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment