Search code examples
jqueryasp.net-mvcrazorlocalizationglobalization

How to enable jQuery validation localization in Razor file (ASP .NET MVC 5, jquery-globalize v. 1.2.2)


I would like to know how to enable validation localization for jQuery for example according to sample at Docs Microsoft at the and of article?

Crossposted at https://forums.asp.net/p/2119555/6130560.aspx?p=True&t=636274881674960601.


Solution

  • Try to install the packages:

    1. Install-Package jquery-globalize;
    2. Install-Package jquery.validation.globalize;

    Them add the references at the following order:

    1. jquery.validate.js;
    2. jquery.validate.unobstrusive.js;
    3. globalize/globalize.js;
    4. jquery.validate.globalize.js.