ASP.NET MVC 3 RC 2 client side validation with globalization

前端 未结 2 1972
后悔当初
后悔当初 2021-02-03 10:53

My goal is to validate a user input on the client-side, depending on the users\' culture.

I have a primitive data-model with the following structure:

pub         


        
2条回答
  •  情话喂你
    2021-02-03 11:10

    Unfortunately there's a naming conflict between jQuery.validate.format and jQuery.Globalization.format functions. Therefore you'll have to change your code to use the non-jquery Globalization plugin.

    I just wrote a blog post about it here.

    For you it should look like this:

    
    
    
    

    That should be enough.

提交回复
热议问题