good afternoon I would like to know if you could help me the problem esque I create an array and I empty data from a for but the array of strings does not store them being the integer if having the problem in the SETTLEMENT NOTE
parrafo8=document.createElement("input");
parrafo8.type="text";
parrafo8.setAttribute("id","pedido"+valor2[i].producto+"-3");
parrafo8.setAttribute("name","pedido"+valor2[i].producto+"-3");
parrafo8.setAttribute("value", '');
parrafo8.placeholder="agregar nota";
select.appendChild(parrafo);
parrafo.appendChild(parrafo2);
parrafo.appendChild(parrafo6);
parrafo.appendChild(parrafo3);
parrafo.appendChild(parrafo5);
parrafo.appendChild(parrafo4);
parrafo.appendChild(parrafo8);
Within the usu function I have a for in which I take out the values that I previously believe, the problem occurs when the quantity and the production are stored correctly, but the arrangement notes that it can not store more than the first data that I entered.
function usu(){
var pedido=document.getElementById("lista-pedido");
var radioid;
var cantid=[];
var produc=[];
var nota=[];
if(pedido.childNodes.length>1){
var tamaño2=pedido.childNodes.length;
for(var i=1; i<tamaño2; i++){
var mesa2=pedido.childNodes[i];
produc.push(mesa2.getAttribute("value"));
cantid.push(document.getElementById(mesa2.id+"-1").innerHTML);
nota.push(document.getElementById(mesa2.id+"-3").value);
}
}
but only in the database registers the first and the second as an "o" and after the second it no longer detects values
and that's how it looks from the browser the composition above has the composite id