Unobtrusive DateTime? Validation in MVC4

前端 未结 5 1950
情深已故
情深已故 2021-02-08 08:21

I upgraded an MVC3 solution to MVC4. After the migration, the validator is broken.

My input date, if i select German as language, is \"20.03.2013\". I get an validation

5条回答
  •  名媛妹妹
    2021-02-08 09:13

    Microsoft suggests to replace the new jquery.validate.js from mvc4 with the old jquery.validate.js from the MVC3 project template. This works, but the funny thing is, the bug is not in MVC4, it was in MVC3.

    We use the way which was described by Francesco, see the accepted answer.

提交回复
热议问题