1
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" 
     rel="stylesheet" type="text/css" /> 
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js" type="text/javascript"></script> 
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" 
     type="text/javascript"></script> 
    <script src="//ajax.aspnetcdn.com/ajax/jQuery.Validate/1.7/jQuery.Validate.min.js" 
     type="text/javascript"></script> 
    <script src="//ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.min.js" 
     type="text/javascript"></script> 

我正在使用數據註釋來顯示錯誤消息。在Firefox中它的工作正常,但在IE中它不在客戶端顯示錯誤消息。 從下面的鏈接JQuery 1.6 $('form').validate() not working in IE7 & IE8,我纔看到asp.net mvc 3不顯眼的客戶端驗證不工作在ie

jQuery驗證目前不使用jQuery 1.6 IE6,IE7, 和IE8工作。

我在我的項目中使用jquery UI自動完成,Datepicker。所以,如果我將jquery版本從1.6.2更改爲jquery 1.5.2,我的驗證工作正常,但我的自動完成開始失敗。

如何解決這個問題?有什麼想法嗎?

回答

1

jQuery.validate 1.8.1是2001年發佈可以解決這個問題,即我與我的MVC 3項目與客戶端驗證集成,它適合我完美。

相關問題