jQuery-Form-Validator
jQuery-Form-Validator copied to clipboard
Ability to force validation of single hidden element
I think it's useful to have ability to force validation of single hidden input - in my case for select elements generated by Select2.js lib.
How to use:
Add data-force-validation-if-hidden="true" and global settings will be ignored.
Any update when this merge will be is resolved and this feature added?
Attribute force-validation-if-hidden must be prefixed validation-. Use $(...).valAttr('force-validation-if-hidden') instead of $(...).data('force-validation-if-hidden')
Whare can I find the implementation of valAttr method? It's not in jQuery API docs and doesn't looks like a custom method too.
https://github.com/victorjonsson/jQuery-Form-Validator/blob/master/src/main/jquery-plugins.js#L284
Changed to valAttr .
This PR is merged and adapted here: https://github.com/Amedeo91/jQuery-Form-Validator