I have a little problem with a project that I'm working on.
It turns out that I need to capture the data from an html table that the user creates dynamically and when I click on "Save data" I need to save them in an array
This is my table:
I know how to capture the values of each cell, but I can not save it in the array, I'm sure I'm doing something wrong, try this:
var i
for (i=1;i<=cantfilas;i++) {
codigoarray[i] = document.getElementById('tabla').tBodies[0].rows[1].cells[0].innerHTML;}
I appreciate the help in advance