-2
The code is this:
success: function (result) {
var tbody = $('tbody');
tbody.html('');
$.each(result, function(k, value) {
search += "<tr class='tagtr'>";
search += "<td>" + value.description + "</td>";
search += "<td>" + value.initial + "</td>";
search += "<td>" + value.email + "</td>";
search += "<td>" + value.url + "</td>";
search += "<td id='table_status' class='text-center'><?= convertStatus(" + value.status + "); ?></td>";
search += "<td class='text-center'>";
search += "<button class='btn btn-red-dark' onclick='location=\"alter?q=" + value.id + "\"'><span class='glyphicon glyphicon-edit' aria-hidden='true'></span></button>";
search += "</td>";
search += "</tr>";
});
tbody.append(search);
},
error: function(result) {
$('#alert').addClass('alert alert-danger').html().show('100');
}
});
What can I do to stop commenting???
use <?php tag ?>
– Otto
I tried it didn’t work.
– Marco Aurélio