The problem I have is that I have a table in HTML
in the following way
<!-- TABLA DETALLES PRODUCTOS -->
<div class="col-md-12">
<table id="TableProducts" class="table table-bordered table-responsive">
<thead>
<tr class="active">
<td><strong>ID Producto</strong></td>
<td><strong>Nombre Producto</strong></td>
<td><strong>Caracteristicas</strong></td>
<td><strong>Muestras</strong></td>
<td><strong>Cantidad</strong></td>
<td><strong>Precio</strong></td>
<td><strong>Descuento</strong></td>
<td><strong>IVA</strong></td>
<td><strong>Retención IVA</strong></td>
<td><strong>Total</strong></td>
<td><strong></strong></td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<!-- FIN TABLA DETALLES PRODUCTOS -->
I add a row within the div, as follows with jquery
var fila = "<td>" + $.trim(idProduct) + "</td>";
fila += "<tr><td>" + $.trim(response.d.nombreProducto) + "</td>";
fila += '<td onclick="OpenModal(\'' + $.trim(idProduct) + '\', \'' + precio + '\');">XXXX XXXX XXXX XXXX</td>';
fila += "<td><center><input type='radio'></center></td>";
fila += "<td><a id='tableccant'>1</a></td>";
fila += "<td><a id='tablecprice'>0</a></td>";
fila += "<td><a id='tablecdescc'>0</a></td>";
fila += "<td>IVA</td>";
fila += "<td>RIVA</td>";
fila += "<td>TOTAL</td>";
fila += "<td><a class='text-danger delete'><span class='glyphicon glyphicon-remove'></span></a></td></tr>";
var ElementoHTML = $(fila);
$('#TableProducts').append(ElementoHTML);
After that I have a line where I call a method where I apply the editable de bootstrap
plugin as follows
//Se puede editar la tabla de dos maneras gracias al plugin
//La primera es por medio de popo up y la otra es por inline
$.fn.editable.defaults.mode = "inline";
// Sección productos
$("#tableccant").editable();
$("#tablecprice").editable();
$("#tablecdescc").editable();
My problem is that when I add the first row, it works wonderfully, but when I add more rows I do not apply the plugin
, someone knows what the problem might be