How to add Date Picker Bootstrap 3 on MVC 5 project using the Razor engine?

后端 未结 9 891
执念已碎
执念已碎 2020-11-28 20:13

I need some guide lines on how to install a Date Picker Bootstrap 3 on a MVC 5 project using the Razor engine. I found this link here but couldn\'t make it work in VS2013. <

9条回答
  •  佛祖请我去吃肉
    2020-11-28 20:18

    1.make sure you ref jquery.js at first
    2.check layout,make sure you call "~/bundles/bootstrap"
    3.check layout,see render section Scripts position,it must be after "~/bundles/bootstrap"
    4.add class "datepicker" to textbox
    5.put $('.datepicker').datepicker(); in $(function(){...});

提交回复
热议问题