si algo haci pero como loo haria si la columna no tiene id? este es mi codigo donde lo tengo que implementar
este es el label cual quiere implementar si esta activo o no
<span class="label label-success">Approved
</span>
if(Data.length === 0)
$('#info').html('<h4 style="color: red">Sorry there are no products available</h4>')
else
$('#info').html('');
html="<table class='table table-condensed table-hover table-striped'><thead><tr><th>#</th><th>Code</th><th>Product</th><th>Price</th><th>Stock</th><th>brand</th><th>status</th><th>Opciones</th></tr></thead><tbody>";
for(i=0;i<Data.length;i++){
data=Data[i][0]+"*"+Data[i][1]+"*"+Data[i][2]+"*"+Data[i][3]+"*"+Data[i][4]+"*"+Data[i][4]+""+Data[i][5]+"*"+Data[i][6];
html+="<tr><td>"+(i+1)+"</td><td>"+Data[i][1]+"</td><td>"+Data[i][2]+"</td><td>"+Data[i][3]+"</td><td>"+Data[i][4]+"</td><td>"+Data[i][5]+"</td><td>"+Data[i][6]+"</td><td><button class='btn btn-warning btn-options' data-toggle='modal' data-target='#modalproduct' onclick='mostrar("+'"'+data+'"'+");'><span class='glyphicon glyphicon-pencil'></span></button><button class='btn btn-danger btn-options' id='confirm' onclick='Delete("+'"'+Data[i][0]+'"'+")'><span class='glyphicon glyphicon-trash'></span></button></td></tr>";
}