Hey There!
Got some Form Validation tests I’d love an assessment on. This is the MDN page I was working on. Test your skills: Form validation
Task 1:
I added a jQuery script here to handle the word count!
Task 2:
Improved upon the form with the pattern=""
regular expressions.
Question on this task…I tried playing around with how the format should look on the phone and it doesn’t look good at all. I know we need to make applications look good on mobile devices. Looks like the format breaks when the screen gets smaller.
Is there a good way to fix this? I wonder if using @media
make sense. Would I have to edit the code to fit the smaller screen dimensions the @media
tag in the CSS? What’s the best way to go about this?
Task 3:
This one was cool, learning about constraint validation API. The Javascript wasn’t super bad on this one! I have another commented out code block in the JavaScript that keeps the default error message box.