Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81728

getting string out of row().data( )

$
0
0

Hi guys,

Instead of clicking cell one by one with cell().data
Is there a way to get the list of string out of row().data ?

I read from that forum that the Row() is Object Data.
And when I try to
$('#example1 tbody').on( 'click', 'td', function () {
var allrow = table.row(this).data();
alert( allrow );
} );

The alert show the row that I clicked like thisRowCell1,thisRowCell2,hellworld
all separated with ","

I tried to split the text using "," and I still fail.
I do not want to go all the way using ID, Ajax to handle this. (because I'm very new to programming)

I simply, just want to be able to click certain row and that
thisRowCell1 is pasted in other target (#id)
while thisRowCell2 show in another target. (#id)

Thank you in advance ! =)


Viewing all articles
Browse latest Browse all 81728

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>