Jquery validate does not validate correctly

3

I'm using jquery validate and unobtrusive for validation in an asp.net mvc 5 project

When I needed to move decimal numbers, I found this Link where it has the validations and etc.

But I have the following problem:

If I leave my Bundle like this:

bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive*",
                        "~/Scripts/jquery.validate*",
                        "~/Scripts/methods_pt.js"));

It works correctly in my Decimal fields, but it stops removing msg from ValidationMessageFor while filling in the other fields correctly from other validations (required for example)

And if I leave it like this:

bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*",
                        "~/Scripts/jquery.unobtrusive*",
                        "~/Scripts/methods_pt.js"));

It works for my validations but does not validate decimals

    
asked by anonymous 18.09.2014 / 21:52

1 answer

1

Usage like this:

bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                    "~/Scripts/jquery.validate.js",
                    "~/Scripts/jquery.validate.unobtrusive.js",                        
                    "~/Scripts/jquery.validate.globalize.js"));

The decimal problem has nothing to do with jQuery Validate, but Globalize is missing:

  

link

    
18.09.2014 / 22:01