Help please as I walk this array with each of jquery (what I print is the console.log of the data input variable):
this is my code:
function crearTabla(datos){
$.each(datos, function(i,item){
console.log(item);
var index=parseInt(i);
index++;
var tr= $('<tr>').append(
$('<td>').text(index),
$('<td class="codigo">').html(item['id']),
$('<td class="descripcion">').html(item['descripcion']),
$('<td>').append('<input type="button" class="abrirModal btnVer" value="Edit">'));
$('tbody').append(tr);
});
}