hai all i wrote these lines for datepicker ..it says date ppicker is not a fuhnction i m sharing my code here.i googled but i cant find anything new .can anyone help me out
TIA
@model CalenderEvents.Models.Tb_Calender
@{
ViewBag.Title = "Calender";
}
@section scripts{
@Scripts.Render("~/Content/cssjqryUi")
@Scripts.Render("~/bundles/jquery")
$(document).ready(function () {
$("#datepicker").datepicker();
});
}
Calender
@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
@Html.LabelFor(model => model.Date)
@Html.EditorFor(model => model.Date, new { @id="datepicker"})
@Html.ValidationMessageFor(model => model.Date)
@Html.LabelFor(model => model.Events)
@Html.EditorFor(model => model.Events)
@Html.ValidationMessageFor(model => model.Events)
@Html.LabelFor(model => model.Remarks)
@Html.EditorFor(model => model.Remarks)
@Html.ValidationMessageFor(model => model.Remarks)
}
@Html.ActionLink("Back to List", "Index")
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
"~/Scripts/jquery-ui-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/jquery.unobtrusive*",
"~/Scripts/jquery.validate*"));
//css
bundles.Add(new StyleBundle("~/Content/cssjqryUi").Include(
"~/Content/jquery-ui.css"));
bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css",
"~/Content/jquery-ui.css"));
whee did i went wrong ...
Rajeesh MenothPosted Sep 27, 2016, 6:04 AM
ready()function was being called before thejquery-ui.jsscript had finished loading.Midhun TpPosted Sep 28, 2016, 1:52 AM
aditya immadiPosted Sep 28, 2016, 1:15 AM
Midhun TpPosted Sep 27, 2016, 6:00 AM