Account Deleted
Hi!
First of all - very well made solution, congrats! 😊
When it comes to your question, you can have a look at my solution for this project.
I placed a conditional statement inside of a for each loop that went through all of the grades. If none of the elements contained an 'active' class (I used it to add the background color and 'choose' the element), an error would appear and the card would not switch to the thank you page.
Hope you find it helpful!
Marked as helpful
@ASH2001prince
Posted
@jsabram you did a great job on your project, and I have learned a lot form it :)