2
I have two tables in an HTML page which is the following:
One with my selected subjects.
Another with a list of subjects to select. PS: I’m just studying, I’m not using databases or anything like that.
So the tables are in this style:
The logic is as follows:
I will click on the checkbox, and when I click on the checkbox, the subject marked will disappear from below and go to the top table.
My question is how will I know the row and column of the current checkbox selected.
Because I want a dynamic code that fits each checkbox, and not create a javascript function for each checkbox.
From a single he know the row, column and their values to add in the top.
Do you understand?
I’ve been researching, I’ve learned to insert the lines, OK, but to take the values and play on top is complicating.
I aggravate everyone for their help. I have more or less logic, which is to take the checkbox line and save in variables the values of the workload, period and teacher and add in the first row of the table above.
Can someone give me some tips? Obr.
I’m not getting the image you posted, but I believe you just need to make an appendchild on the other table. optionally, you could add a drag'n drop event.
– Tobias Mesquita