Submitted
Hello all,
I've not posted a solution for a while. This is my first project that involves Javascript / DOM manipulation. All feedback / constructive criticism is welcome!
The most difficult part for me was JavaScript. My solution works and the UX looks nice. (I think..)
Aspects I'd like to change:
- When you click the 'submit' button without making a feedback selection, you get an error message saying, 'Please make a selection.' At the moment, you cannot proceed to the 'Thank you page' without making a selection, but an error message would help the user know what they were doing wrong.
I attempted to do this by placing an empty <p> tag in the HTML like this,
<p id = "error_msg"></p>I then targeted this tag in the javascript by its ID. I planned to set the textContent / innerHTML to "Please make a selection" if the user did not.
I could not figure out the Javascript logic, so I ended up deleting this section. If anyone can help me implement this logic based on my code, that would be great!
Thanks, all - Have a great afternoon!