For a test case, I created a test project with the exact same code from Hero Demo and then removed the responsive CSS code.
Why is it that dropdowns do not work unless responsive is also included? I do not wish to use responsive in my project.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There must be something else wrong in your usage. Here’s a very basic fiddle (markup copied directly from the linked demo) using just
jquery.js,bootstrap-dropdown.js,bootstrap.css.Make sure you’ve loaded the scripts before calling
$('.dropdown-toggle').dropdown();, and that you’re using the proper selector according to the way you’ve structured your dropdown!