I have two table in an HTML page that is as follows:
One with my selected subjects.
Another one with the list of disciplines to select. PS: I'm just studying, I'm not using a database or something.
So the tables are in this style:
The logic is as follows:
I will click on the checkbox, and clicking on the checkbox, the marked discipline will disappear from below and go to the table above.
My question is how will I know the row and column of the current checkbox selected.
Because I want a dynamic code, which is used for every checkbox, and does not create a javascript function for every checkbox.
From one single he knows the row, column and its values to add in the top.
Understand?
I've been searching, I've learned to insert the lines, OK, but to get the values and play on the top is complicating.
I thank you all for your help. I have more or less logic, which is to pick up the line from the checkbox and save the values of the time, period and teacher in the variables and add in the first row of the table above.
Can anyone give me tips? Obr.