@mattstuddert
Posted
Great work on this challenge, your solution looks really good. The only remaining task would be to clear the errors in the report. Keep up the great work! 🙂
@abidou08
Posted
@mattstuddert Thanks for suggestion, i tried to fix some issues but i have some questions if it's possible to answer:
1- I changed "Notify Me" button type to "submit", but now page is reloading automatically even if email is wrong.
@mattstuddert
Posted
@abidou08 that's because the default action of submitting a form is for the browser to refresh. So you just need to add event.preventDefault()
inside the subscribeButton
function. Here's more info on event.preventDefault.