Why do all buttons control only the same row of data? How should we solve it?
Insert Title here
Reply to discussion (solution)
I always thought you had a lot of grammatical problems with this code.
I always thought you had a lot of grammatical problems with this code.
can run correctly.
How many id= ' a ' does the loop output have?
Then document.getElementById ("a") will get what ...
What's the situation? The database read out the ID all right? This should be ID have passed it, try it again ~
How many id= ' a ' does the loop output have?
Then document.getElementById ("a") will get what ...
I also think this is the ID of the problem, just do not know how to change.
What's the situation? The database read out the ID all right? This should be ID have passed it, try it again ~
The ID that the a tag reads is the primary key I set in the database, andThe ID of D is a different thing.
Reference 1 Floor Chendong_j's reply:
I always thought you had a lot of grammatical problems with this code.
can run correctly.
Immediately feel LZ good strong
You have the same ID for each row, how can you use getElementById to locate the same column?
The ID of the 65-71 line set is duplicated if the ID of the setting can be set (A,b,c ... $row[' ID ') on the front stitching to differentiate