ericelliott / h5Validate

An HTML5 form validation plugin for jQuery. Works on all major browsers, both new and old. Implements inline, realtime validation best practices (based on surveys and usability studies). Developed for production use in e-commerce. Currently in production with millions of users.
576 stars 125 forks source link

Support for required dropdowns #46

Open jhrabows opened 11 years ago

jhrabows commented 11 years ago

Something like

I think all you need is this line of code:

settings.delegateEvents('select[required]', {change: true}, this, settings);

Not sure if such use of required attribute is in html5 spec though. Could be made optional.

ericelliott commented 11 years ago

Any chance you could whip up a test case and make a pull request?