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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -