@MaelkMark
Posted
You did a great job, I like the custom radio buttons and checkboxes.
But actually you've forgotten the email validation. You can submit the form even if the email address is invalid.
You can check the validity from js with inputElement.checkValidity()
, returns true
/ false
(this works because the input type is set to email
).
Also, if you want to create real-time feedback to the user, you can use the :valid
and :invalid
pseudo classes. If interested, you can watch this video by Kevin Powell on youtube.