I have following form.
once I click that Go to Next Section Button I can direct to next section in this form.
Here the whole code for this view and this the Layout file for that view page
But now Once I click I'm not getting any response and I cannot goto next page I'm getting following error.But this error occur in Firefox only , once I change debugging to Chrome this is working.
TypeError: validator is undefined file_path/jquery.validate.js
this is that error view
Error view 1
once I click above view I can see below view
Error view 2
Bugzilla debugger pointed out following section ([if (validator.settings.rules)]) of jquery.validate.js file has the error
staticRules: function( element ) {
var rules = {};
var validator = $.data(element.form, "validator");
if ( validator.settings.rules ) {
rules = $.validator.normalizeRule(validator.settings.rules[element.name]) || {};
}
return rules;
},



source of htmlnot server side code?<head>or immediately before the closing</body>tags and ensure you have them in the right order and no duplicates@Scripts.Render("~/Scripts/jquery.min.js")followed by@Scripts.Render("~/Scripts/jquery.validate.min.js")and@Scripts.Render("~/Scripts/jquery.validate.unobtrusive.min.js"). Then you add@Scripts.Render("~/Scripts/jquery-1.7.1.min.js")wiping out all the previous scripts. Then at the bottom you have@Scripts.Render("~/bundles/jquery")again wiping out all the previous scripts. Start by getting rid of everything in the head. And then read Bundling and Minification