@Lucas4lvesSubmitted about 2 years ago
How did you switched views from the initial state (rating display) to the final state("thank you")?
How did you switched views from the initial state (rating display) to the final state("thank you")?
Hi Lucas,
I have recently completed this project as well. Congrats on getting it done :) First I wrote the HTML code for the "Thank You Page" in the same HTML file, right after the code for "Rating Display". And then using CSS I have attributed the "display" property to the two divs containing each one of the pages. For the "Thank You Page" I used "display: none" . I have then added an event listener on the submit button that changes the display property for the "rating page" into "none" and the "thank you page" into "block".
Hope it helps!