How to display the cell contents when it is clicked?

How to display the cell contents when it is clicked?

sahosaho Posts: 16Questions: 11Answers: 0

`
print "\n table(\"placeholder28\",data,{title:\"<BR><font size=20><b><center>SU<center></b></font><BR>\",colTitles:header})\n";
print " var otable = \$('#placeholder28-table').DataTable({ \n";
#print " retrieve: true, \n";
print " });
\n";

print "\$(\'#placeholder28-table tbody tr\').on(\'click\', \'td:nth-child(10)\', function (f) {

\n";
#print " var tr = \$(this).closest(\'tr\');

\n";

#print " var row = otable.row(tr);\n"
print "var cell=otable.cell(this);

\n";

print "\n var js_hash = { ";
foreach $user (keys %pend_reason_hash) {
    $counter=0;
    $value="<b>Reasons</b>:<br>"; 
    $value .="$pend_reason_hash{$user}";                      
    print "\"$user\":\"$value\",";
    $value="";
}
print "}; \n";

`

This discussion has been closed.