I am new to Javascript coding. I would like to know how to move to a specified page based on the user’s chosen button. For example:
There are 2 buttons: #yes and #no
If I choose #yes, there is a box below it that has a text bar at which you can input a “why” in it. Call that text bar #whyyes
If I choose #no, there is a box below it that has a text bar at which you can input a “why” in it. Call that text bar #whyno
When I hit continue (3rd button called #continue), I want to move me to the page according to the button I choose: #yes or #no. The comment also displays in the page based on the button that I choose. How do I code based on that request?
Thank You.