-5
I would like to create a button that allows me to change the line without creating another one, but the button is not doing anything currently, only exists.
My code is like this:
function edit(id){
editar = id.parentElement.parentElement;
document.getElementById("nome").value = editar.cells[2].innerHTML;
document.getElementById("telefone").value = editar.cells[3].innerHTML;
document.getElementById("email").value = editar.cells[4].innerHTML;
document.getElementById("filme").value = editar.cells[5].innerHTML;
document.getElementById("ano").value = editar.cells[6].innerHTML;
}
Please clarify your problem or provide additional details in order to highlight exactly what you need. The way it’s written these days it’s hard to tell exactly what you’re asking.
–