bootstrap 3 navbar collapse button not working

后端 未结 8 1311
离开以前
离开以前 2020-12-06 08:59

I did some modification in navbar but now the toggle button is not responding on click. Below is my code. Where I am wrong ??


CODE:

           


        
8条回答
  •  暖寄归人
    2020-12-06 09:39

    In case it might help someone, I had a similar issue after adding Bootstrap 3 to my MVC 4 project. It turned out my problem was that I was referring to bootstrap-min.js instead of bootstrap.js in my BundleConfig.cs.

    Didn't work:

    bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                                "~/Scripts/bootstrap-min.js"));
    

    Worked:

    bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                            "~/Scripts/bootstrap.js"));
    

提交回复
热议问题