3
I am using Jquery validate and unobtrusive for validation in an Asp.net mvc 5 project
When I needed to work with decimal numbers, in search 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 on my Decimal fields, but it stops removing the Validationmessagefor msg by filling in the other fields correctly from the other validations(required for example)
And if I leave like this:
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/jquery.validate*",
"~/Scripts/jquery.unobtrusive*",
"~/Scripts/methods_pt.js"));
It works my validations but does not work the validation of decimals
It worked, but it’s like I explained, it doesn’t "remove" the Validationmessagefor msg when filling in the fields correctly
– Rod
This is the normal behavior of
jquery.validate
. I will search in the documentation if you have a way to hide the messages from the correct fields, then update in the reply.– Leonel Sanches da Silva
It must be unobstrusive then, for it is as I explained, if it gets reversed it does what I have commented
– Rod