Javascript logic help pls
https://codepen.io/saad-shehzad-the-bashful/pen/raBbdXg
I don’t know how to come up with the logic or planning for this design. It’s a really common FEM project, and it’s really basic. However, I’m having trouble because when I click one button, I want the background-color: white; to apply only to that button. When I click another button, the white background should be removed from the previous button and applied only to the newly selected button. Then, when I click the submit button, it should redirect to another HTML file that says, You pressed 'the pressed button' out of five.
I don’t know how to come up with the logic or planning for this design. It’s a really common FEM project, and it’s really basic. However, I’m having trouble because when I click one button, I want the background-color: white; to apply only to that button. When I click another button, the white background should be removed from the previous button and applied only to the newly selected button. Then, when I click the submit button, it should redirect to another HTML file that says, You pressed 'the pressed button' out of five.

