Design comparison
SolutionDesign
Solution retrospective
Asking for advice why my button not working
Community feedback
- @DrMESAZIMPosted over 2 years ago
Hi Alfar
Well done the mobile responsiveness is very good.
On validation of the input lets take the 2 steps inside the file index.html
- line 47 replace type="text" with type="email"
- line 51 replace type="text" with type="password"
2 - @DevNickJrPosted over 2 years ago
Concerning your button not working
- First off, check out your errorFunc,
-
const span should be equal to document.querySelector and not formControl.queryseletor
-
Give id to each span in your html. Select and Use the querySelector with the id, instead of the span element.
- Checkout your script.js file: In your submit event handler function, you used the preventDefault function which stops the default behavior of an element. in this case, it stops the form from submitting.
1
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