checkValidity() function


This function returns false if any of the input fields did not validate. How would I find which field did not validate. i would like to give each box red border.


What code do you have so far?


I didn’t write the code yet. I was interested to see how can I using above function get individual items that were not validated


Have a try at changing up the examples here (in particular, the constraints section), you may even find that default browser behavior is all you need.

closed #5

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.