MVC3 unobtrusive validation not working in IE

前端 未结 3 2219
醉梦人生
醉梦人生 2020-12-06 12:33

I have MVC3 app, unobtrusive validation works fine in FireFox, but not working in IE.

Any ideas why?

UPDATE

It seems that jQuery uno

3条回答
  •  醉酒成梦
    2020-12-06 13:36

    I had similar problems recently, with IE7 and IE8 only (with MVC4).

    To get validation working again, I have the following versions installed:

    jQuery: 1.8.3

    jQuery Validation: 1.9.0.1

    Microsoft Unobtrusive Validation: 2.0.30116.0 (latest as of May 14, 2013)

    I noticed that moving to jQuery Validation v1.10 was where the problems began. At the time of this post JQuery Validation is v1.11.1 and does not work in IE7/8. This was also tried with both jQuery 1.8.3 and 1.9.1, neither worked with the latest version of jQuery Validation.

    Note: The particular problem for me was validation was firing and flagging error for all inputs and checkboxes even if they were not 'data-required'.

提交回复
热议问题