Latest solutions
Latest comments
- @rio-rifaldi@calebQWEB
Hi Rio
great job on the layout, first off you could store the user's rating input in an empty array or an empty string, in my case I used an empty string and then set the length of that string to always equal 1 if it doesn't equal 1 I used the .slice() method to remove the first item in the string.
and then secondly instead of having a separate file for the thank-you section, you could have it in a separate container in your index.html and set it to display : none and then set an event listener on the submit button to display the container and hide the rating section whenever you click it.
I hope this was helpful Happy Coding
Marked as helpful