I am using jQuery DateTime picker on one of my View. This DateTime picker is working fine on one PC. On another PC it is giving error:
Microsoft JScript runtime error: Object doesn't support property or method 'datepicker'
The jQuery code and this View itself is same on both the PCs. Even the jQuery versions are same.
Below is the code:
<link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />
<link href="http://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel="stylesheet">
<script src="~/Scripts/jquery-1.10.2.min.js"></script>
<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="https://code.jquery.com/ui/1.10.2/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready (function () {
$(".fromdate").datepicker();
})
</script>
The only difference I could see is in the App_Start folder. The PC on which this error is shown has only one file in this folder and that is RouteConfig.cs
The other PC on which it is working fine has couple of files in this folder including BundleConfig.cs
Is it anything has to do with this?
@Scripts.Render("~/bundles/jquery")or similar?jquery-1.10.2.jsfile which will be a problem.