Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
i'm using mvc 4. but normal javascript and jquery is not supported in my project. after adding @Scripts.Render("~/bundles/jquery") some of jquey is supported.but the date picker is not supported in my project,what can i do ?
Posted

For that you have to add jQuery UI into your project.Please try is as below.

BundleConfig file:

C#
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
            "~/Scripts/jquery-ui-{version}.js"));


On your layout page:

@Scripts.Render("~/bundles/jqueryui")


For css
VB
bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
              "~/Content/themes/base/jquery.ui.core.css",
              "~/Content/themes/base/jquery.ui.resizable.css",
              "~/Content/themes/base/jquery.ui.selectable.css",
              "~/Content/themes/base/jquery.ui.accordion.css",
              "~/Content/themes/base/jquery.ui.autocomplete.css",
              "~/Content/themes/base/jquery.ui.button.css",
              "~/Content/themes/base/jquery.ui.dialog.css",
              "~/Content/themes/base/jquery.ui.slider.css",
              "~/Content/themes/base/jquery.ui.tabs.css",
              "~/Content/themes/base/jquery.ui.datepicker.css",
              "~/Content/themes/base/jquery.ui.progressbar.css",
              "~/Content/themes/base/jquery.ui.theme.css"));


On Your layout page
@Styles.Render("~/Content/themes/base/css")
 
Share this answer
 
Thanks for the Reply. But sorry to say its not working. actually i dont understand about the problem,some of my project page support jquery and another cant support. whats the problem?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900