Responsive landing page using Css flex and Javascript
Design comparison
Solution retrospective
I'd love to hear what you all think of this one
Community feedback
- @Stv-devlPosted over 2 years ago
Hi, Nice work. I like the alert with name of user when we register.
Maybe you can try to use the function "submit" it's will be more realistic than on click :
form.addEventListener("submit", (e) => { e.preventDefault(); } });
In your Html maybe you don't need to use an ul for the form.Good continuation
0@ugochukwuuuPosted over 2 years ago@Stv-devl thanks for the reply but i don't understand what .preventDefault() does, i will try it though
0@Stv-devlPosted over 2 years ago@practitionerofsorts
When you will click on the button submit the page will change and we will have a problem with the code so we had
e.preventDefault()
for prevent that.0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord