Código Javascript:
Ver original
$.ajax({ type: "GET", url: "edit-total.php?tabla=1&id_aviso=" +id_aviso, beforeSend:function(objeto){ $('#carga').css({display:'block'}); }, complete:function(){ $('#carga').css('display','none'); }, }) .done(function(json) { json = $.parseJSON(json) for(var i=0;i<json.length;i++) { $('.enlace8').append( "<table width='100%' class='bl'><tr><td width='10%'>Dto</td><td width='12%' class='dto' data-campo='descuento'><span>"+json[i].descuento+"</span></td><td width='3%'></td><td>Dto</td><td></td><td>Dto</td><td></td></tr><tr><td width='10%'>Base</td><td width='12%' class='dto' data-campo='pvp_total'><span>"+json[i].pvp_total+"</span></td><td width='3%'></td><td>Base</td><td></td><td>Base</td><td></td></tr><tr><td width='16%' style='padding:5px;border:solid #ddd;border-width:0 0 1px;' >Iva 21%</td><td width='10%' class='dto' data-campo='iva'><span>"+json[i].iva+"</span></td><td width='3%'></td><td style='padding:5px;border:solid #ddd;border-width:0 0 1px;'>Iva 21%</td><td></td><td style='padding:5px;border:solid #ddd;border-width:0 0 1px;'>Iva 21%</td><td></td></tr><tr><td width='10%'>Total</td><td width='12%' class='dto1' data-campo='total'><span>"+json[i].total+"</span></td><td width='3%'></td><td>Total</td><td></td><td>Total</td><td></td></tr></table>"); } }); });
Gracias