Link Edit and Delete in column
Link Edit and Delete in column
capitaobrazil
Posts: 7Questions: 0Answers: 0
Hello!
Everything is working, just can not retrieve the ID to send a page of edition that I have ready and also to Delete, I post my code below, if you can help me, I will be eternally grateful.
load.js
$(document).ready(function(){
$('#grid').DataTable({
"bProcessing": true,
"sAjaxSource": "grid.php",
"bJQueryUI": true,
"sAjaxDataProp": "",
"aoColumns": [
{"mDataProp": "idedital_convocaca"},
{"mDataProp": "datavotacao"},
{"mDataProp": "localvotacao"},
{"mDataProp": "idedital_convocacao"}
],
"mRender": function( data, type, full) {
return '<a href="edit.php?id='+full[0]+'">edit</a>';
}
});
});
table.php
<table id="grid" class="display">
<thead>
<tr>
<th>Local Votação</th>
<th>Local Votação</th>
<th>Data Votação</th>
<th>Edit</th>
</tr>
</thead>
<tbody>
</tbody>
This discussion has been closed.
Replies
Solved