I'm having an issue with jQuery validate that I haven't seen before and I'm at a loss as to what is going on.
I installed Umbraco Forms and was not able to achieve what I wanted to do with field validation so I decided to fall back to using jQuery Validate. After banging my head on the wall for a while, I've stripped it down to a bare bones test and have no idea why its not working.
After I enter anything in the textbox, the "valid" class appears on the element. Note that I have attempted to override this default value using validClass in my JS which seems to indicate that its not firing.
Does anyone have any clue as to what might be overriding / taking over the validation? Is it possible it's related to the installation of Umbraco Forms?
jQuery Validate Problem
Hello All,
I'm having an issue with jQuery validate that I haven't seen before and I'm at a loss as to what is going on.
I installed Umbraco Forms and was not able to achieve what I wanted to do with field validation so I decided to fall back to using jQuery Validate. After banging my head on the wall for a while, I've stripped it down to a bare bones test and have no idea why its not working.
My Partial View:
The stand alone JS file where I'm trying to do the validation (ValidateRegForm.js):
jQuery load order:
Based on some posts, I've added this to the web.config:
I've verified in the inspector that all of the JS files are loading as expected and there are no errors in the console.
This is the HTML in the inspector when the page loads:
After I enter anything in the textbox, the "valid" class appears on the element. Note that I have attempted to override this default value using validClass in my JS which seems to indicate that its not firing.
Does anyone have any clue as to what might be overriding / taking over the validation? Is it possible it's related to the installation of Umbraco Forms?
Thank you in advance!
Removing the jQuery unobtrusive javascript resolved the issue.
is working on a reply...