Hacker News new | ask | show | jobs
by ourcat 1704 days ago
You can catch the 'invalidity' of the input with the `oninvalid` JS event, then use that to `e.preventDefault()` and show a message as to why it it failed.
1 comments

Interesting... I'll investigate this. Thanks!