Following this guide ( http://www.asp.net/mvc/tutorials/javascript/using-the-html5-and-jquery-ui-datepicker-popup-calendar-with-aspnet-mvc/using-the-html5- and-jquery-ui-datepicker-popup-calendar-with-aspnet-mvc-part-4 ), I try to install jQuery UI WIdgets: Datepicker via NuGet and get the following error:
An attempt to resolve the dependency 'jQuery.UI.Core (= 1.8.9)'.
Trying to resolve the 'jQuery (β₯ 1.4.4 & <1,6)' dependency.
Successfully installed jQuery 1.4.4.
Successfully installed "jQuery.UI.Core 1.8.9".
Successfully installed "jQuery.UI.Widgets.Datepicker 1.8.9".
Installation error. Rollback ...
Failed to upgrade "jQuery 1.7.1.1" to "jQuery 1.4.4". Could not find jQuery.UI.Combined version compatible with "jQuery 1.4.4".
This is apparently because I have jQuery 1.7.1.1 in a solution for something else. How can I get around this?
If I canβt, is there another datepicker that I can use in ASP.NET MVC 4 (which I am new to) with clear usage instructions?
I had the same problem, so I downloaded the widget manually: http://jqueryui.com/download/
Extracting the folder and adding the scripts I need for my project:
The reason Nuget failed was because the package tried to reference jquery.1.4, and MVC 4 tried a higher library.
Hope this helps ...
It seems that the Old post, but people like me come later in this post. I solve this problem using the bootstrap date icon instead of using the jquery ui date picker.