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
Live validation not working on select #1872
Comments
I'm stumbling across this at the moment as well. It seems to me that the live validation on Maybe there is a workaround for that? |
This is similar to: #997 |
Thanks for the hint - this works for me. $('select').on('change', function(){
$("form").validate().element('select');
}); |
@max-preuschen thanks for the simple workaround. I am also encountering this issue on version 1.15.0 |
This effects date pickers, files, and select elements (basically any that require a change event). |
FYI, found this in the docs when trying to figure out why validation wasn’t happening on selects on change:
https://jqueryvalidation.org/reference/#link-validation-event |
Seems like there should be a switch I could use to tell jquery to validate all of my fields at once. We have a lot of complex forms that require us to handle the Save or what is labeled as "submit" but is not actually a form.submit() so we can show various modal confirmations first, prior to submitting. |
Live validation before first use of
.valid()
doesn't work for selects like it does for input texts, e.g.Fiddle here: https://jsfiddle.net/4hq3b0ub/
The text was updated successfully, but these errors were encountered: