MVC4 jQuery UI does not work

后端 未结 4 534
刺人心
刺人心 2020-12-18 13:26

I cannot get jQuery UI working in my ASP.NET MVC4 application. I tried dialog and datepicker. Here is part of the code of my view.



        
4条回答
  •  [愿得一人]
    2020-12-18 13:38

    Your code runs just fine in a fiddle: http://jsfiddle.net/m3QFL/

    Check the console for errors and the path to your scripts. Chrome includes a console to help with js debugging or you can run FireFox and FireBug.

    Either one will go a long way in helping you solve issues like this.

    Also, hosted versions of jquery and jquery ui are available through jquery and jquery ui or Google. Here are yours:

    jquery ui has links at the bottom of their homepage to their hosted versions.

    BTW, the // instead of http:// allows the script to pick up the http prefix from the site. If you are on ssl it will pick up the https:// so you don't have secure and non-secure items on your page.

提交回复
热议问题