Closed centurion6x closed 2 years ago
Input validation on the contact form
Closes: #102
Yes, I'm opening this PR under hacktoberfest.
Added the necessary elements to display error messages and hidden label elements to carry the names of the fields.
Added some styling to display the new elements conditionally(position, color, visibility etc.)
The validation logic is implemented inside the validator class. This allows for easier implementation of more forms and any input field in the future.
NA
@centurion6x Great work, Thank you for contributing :)
Thank you for being an awesome maintainer! love contributing to this project :heart:
@centurion6x Thank you, it means a lot : )
Related Issue
Input validation on the contact form
Closes: #102
Are you creating this PR under Hacktoberfest
Yes, I'm opening this PR under hacktoberfest.
Describe the changes you've made
contact.html
Added the necessary elements to display error messages and hidden label elements to carry the names of the fields.
style.css
Added some styling to display the new elements conditionally(position, color, visibility etc.)
validator.js
The validation logic is implemented inside the validator class. This allows for easier implementation of more forms and any input field in the future.
Describe if there is any unusual behaviour of your code(Write
NA
if there isn't)NA
Checklist:
Screenshots