Skip to content
Advertisement

HTML – input field jumps out of html table

I have a ‘dynamic’ table where someone can change info about a person. When clicking on ‘update’ the cell should change to an input field. This works, but somehow the input field jumps out of the table and sits above it.

This is part of the function that shows the table:

JavaScript

This is the page where the function gets called to show the table:

JavaScript

Before clicking update Before clicking update

After clicking update After clicking update

The input field should stay in the table at the same row/column, but it jumps out and the rest slides one over…

Advertisement

Answer

Try changing your PHP code to this.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement