Why do you mark error in jquery validate plugin?

0

The plugin de editable I want to apply in the following table

<!-- 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 -->

To which I add rows by a function of jquery in the following way

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 class='tableccant'>1</a></td>";
fila += "<td><a class='tablecprice'>0</a></td>";
fila += "<td><a class='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);

To which I apply the editable plugin as follows

// Sección productos
$("#TableProducts").find(".tableccant").editable();
$("#TableProducts").find(".tablecprice").editable();
$("#TableProducts").find(".tablecdescc").editable();

My problem is that I use two plugin for my page aspx in which the first plugin is the jquery validate and the second is the editable con bootstrap . My problem is when I'm going to edit a field

The plugin of editable works well, in fact the jquery validate also works well since I have other sections where I apply it, the problem is that in the google console I get the following error, someone knows how to solve it

    
asked by Miguel 18.07.2017 в 17:19
source

2 answers

1

I remember that once something similar happened to an acquaintance, and the problem was that there were two elements with the same id

If not, it would be useful if you let us see the code to diagnose it better

    
answered by 18.07.2017 в 17:23
0

The problem is that if I send you an error: cannot read property 'settings' of undefined is that he is probably not finding the $("#id") object that you are applying the% settings function%, try to place this in the chrome console or search the correct id.

    
answered by 18.07.2017 в 17:25