Good day all,
I have an issue that I think I'm close to solving, but I'm not quite there yet. Any assistance will be greatly appreciated.
I have a gallery that would allow users to edit rows of simple exercise data. I've managed to have each dropdown default to the data currently stored in the DB.

My hurdle is, if I change the option in first dropdown, I'm not sure how to get the value behind my choice in order to pass to the second dropdown, in the same row, in order for the second dropdown to change it's choices (and to only change the options in the second dropdown in the same row, and no others).
Example, if I change the first dropdown in the first row from 'Curls' (Pic 1) to 'Sit Ups' (Pic 2), the second dropdown, in that same row, should reflect new choices. Again, I'm not how to get the value of the choice from the first dropdown, to influence the second dropdown in the same row..

Any and all help would be greatly appreciated. If you require any further clarity on my question, please let me know.