cferdinandi / validate

A lightweight form validation script.
MIT License
230 stars 39 forks source link

v1.2.0 - Add optional live validation for text-like fields on keyup and select fields on change #38

Closed michapietsch closed 6 years ago

cferdinandi commented 6 years ago

Nice feature, but my goal is to very deliberately NOT make this a full featured library.

It does one thing: validates on blur by augmenting native form validation. Why blur? Numerous usability tests have shown it's the best time to validate.

I can imagine exceptions (password fields with lengthy requirements for example), but that's not what this is for.

michapietsch commented 6 years ago

I see. That's why I made it optional. :) In any case: Great library and thanks for the in-depth explanations on css-tricks.com! Much appreciated!

I'll keep the feature in my fork. I know there will always be more feature requests. My aim is to only use the Constraint Validation API to be framework-independent but that to the full extend possible.

cferdinandi commented 6 years ago

Optional or not, it's still more code in the code base, though, right? I've learned to be a bit ruthless with features.

Glad you enjoyed the series, and cheers!