How to get the column value from the data table into variable

How to get the column value from the data table into variable

rakeshkumar123rakeshkumar123 Posts: 11Questions: 5Answers: 0
edited March 2020 in Free community support
startRender: function ( rows, group, level ) {              
                            if (level === 0) {                              
                    return $('<tr/>')
                       .append( '<td colspan="6" style="background-color:#e8e8e8;font-weight: bold;letter-spacing:1px; "><span style="margin-right:10px; margin-top:2px; display:inline-block; position: relative;top: 2px;">SITE : '+group+' </span></td>' );
                }
                else
                {       
                var  site_no = 'AD540';
               return $('<tr/>')
                       .append( '<td colspan="6" style="background-color:#e8e8e8;font-weight: bold;letter-spacing:1px; "><span style="margin-right:10px; margin-top:2px; display:inline-block; position: relative;top: 2px;">SUBMISSION DATE : '+group+' / </span><a href="view_submissions.php?submissions_dt='+group+'"  class="btn btn-primary btn-xs" style="color:#ffffff; font-weight:normal" ><i class="fa fa-eye"></i> VIEW</a> <a href="view_submissions_pdf.php?submissions_dt='+group+'&site_no='+site_no+'"  class="btn btn-primary btn-xs" style="font-weight:normal" target="_blank" ><i class="fa fa-file-pdf-o"></i> PDF</a></td>' );
}   
},  

In this above code want to have var site_no one of the column value dynamically now I have added static value to use in a href

Answers

This discussion has been closed.