0
Hello. I have a script where I need to add a new table in a td created via javascript. I tried to create the new table directly using something like:
var newTable = cell3_prod.createElement("TABLE");
I thought it would work but caused error I tried that way too:
cell3_prod.appendChild(document.createElement("TABLE"));
var tab_produto = cell3_prod.getElementsByTagName("TABLE");
It hasn’t worked yet. This should work or depend on something else?