@ralphvirtucio
Posted
Hi Jim Barret, Great job on completing this challenge
I like how you used a dialog for the "Thanks for subscribing" message. I'm considering using it when I refactor this challenge. Thank you for sharing the showModal resource.
-
I have a test scenario for you: When the user inputs an invalid email and then clears the input to enter a valid email, they are redirected to the "Thanks for Subscribing" page. After clicking the dismiss message and returning to the main page, I notice that the error message "Valid email required" is still there even though there is no user email input.
-
It is also a good practice to use button type="submit" when submitting a form.
If you want more references about client-side form validation here is a MDN article you can check. 😊
Everything looks great!
CODE UP ☕🧑💻😊 !
Marked as helpful