New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to validate collapsed and disabled fields once expanded and enabled? #114
Comments
Does this help?: |
Not exactly but as I was creating a jsFiddle to show you the problem I figured out what the issue was. I have a See clearForm being called in the disableFields function: |
Wow, you found a new webkit bug. I will try to detect this bug and fix this inside of webshims + fill an issue in the webkit bugtracker. Here is how you can workaround this issue: Currently you are setting an input disabled and then reset the value. Simply change this order. First reset the value second disable the input. here is your changed fiddle: http://jsfiddle.net/dj3vw/14/ |
Perfect. Thank you very much. By the way, thanks for creating Webshims. It is extremely useful and has made my current project much easier. |
I have a form that has a fieldset containing fields for billing info. By default, this fieldset is hidden and the fields within it are disabled. When a checkbox is checked the fieldset is shown and the fields are enabled.
My problem is, I cannot get the validation to occur on those fields. I've tried everything I can think of to get the validation to fire but no luck. I thought
data-dependent-validation
was the key but that only seems to work if the fields are not disabled to begin with.Any help on how to validate expandable/collapsable groups of fields when the submit button is pressed would be much appreciated.
The text was updated successfully, but these errors were encountered: