get the first td values on selected rows

get the first td values on selected rows

derocchaderoccha Posts: 9Questions: 1Answers: 0
edited August 2013 in General
Hi to all,

Using TableTools I try to get the values of selected rows on a specific column but I do not find how to achieve this

[code]
"fnClick": function(nButton, oConfig, oFlash) {
var oTT = TableTools.fnGetInstance( 'faculties' );
var aSelectedTrs = oTT.fnGetSelected();
var tds = $(aSelectedTrs).eq(0).find('td');
alert(tds);
}
[/code]

I would like to get the returned value on first td

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Try using fnGetSelectedData perhaps: http://datatables.net/extras/tabletools/api#fnGetSelectedData ?

    Then you could just loop over the array and get the data you need.

    Allan
This discussion has been closed.