-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Uncaught TypeError: Cannot read property 'settings' of undefined #2158
Comments
Same issue here. |
Hi @tanvan81 & @hassangulzar I think we have this fixed in master, but not released yet. Could you please test with the version in master and see if the issue persist. You can grab the dist file from this gist: https://gist.github.com/Arkni/495730a47b52b570b150d4375bfbb7c7 Thanks! |
This is similar to issue #1267 . |
I am seeing this error with 1.13: staticRules | @ | jquery.validate.js:1278 The error still occurs with the file offered by Arkni. |
I upgraded jquery to 3.3.1 and started getting this same error. I tried the 1.17.1-pre file and the issue persists. Happens from calling the following:
Loaded up the non-minified version of 1.17.0 and generated to get the line number: Uncaught TypeError: Cannot read property 'settings' of undefined Looks like the offending line for me is here:
EDIT: My issue was from missing the script include for jquery.validate.unobtrusive in an ASP.NET Core application. Added that and all is well. |
Still error I've jquery.validate.1.19.min.js. When I call ajax ` function addContact(id) {
` function initValidate() {
when success, console error |
Still error |
me too still error |
For some reason, a form with no fields to validate(empty form), gives this error(on my end at least...)... Another possible cause is not calling the "validate()" method on your form first, before doing other things.(this seems to set up some stuff...) ex: $("#myFormId").validate(); |
Same here. Uncaught TypeError: Cannot read property 'settings' of undefined when trying to add a simple rule $("#txtisin").rules('add', { required: true}); |
This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automatically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. |
I have code
` function initValidateQuestion() {
var submitSettings = $.data($("#frmQuestion").get(0), 'validator').settings;
`
This code run on Jquery 2.x. But when I upgrapde jquery 3.3.1, I run this code, get error
How do I fix this bug ???
The text was updated successfully, but these errors were encountered: