accesing multiple columns while render

accesing multiple columns while render

sandeepdj11@gmail.comsandeepdj11@gmail.com Posts: 1Questions: 0Answers: 0

Hi,
{
"targets": 7,
"data":"active",
"render": function ( data, type, full, meta ) {
return (data == "Yes") ? '<a href="edit.php?id='+data+'"><button class="btn btn-info" >Inactivate</button></a>': '<a href="edit.php?id='+data+'"><button class="btn btn-danger" >Activate</button></a>';
}

how can i access id from my table so that i can edit the row.s

e.g href="edit.php?id='+data+'";

can i pass like below to access the id?
"data":"active",
"data":"id"

This discussion has been closed.