jquery - How do I get cell data from a javascript variable containing a <tr> element -
i using datatables , table tools plugin. can have selected row returned javascript variable. variable want value of specific cell in each row. not sure @ how though. have
var rowdata = tabletools.fngetinstance( 'tableid' ).fngetselected(); and want rowdata.children('td'), doesn't work, effect.
var cellvalue = $("#tableid").datatable().fngetdata(rowdata, colindex); where colindex whatever column want value of (this includes hidden cells).
if don't care hidden cells, do:
var cellvalue = $(rowdata).children("td")...
Comments
Post a Comment