title: Bootstrap dropdown doesn't work inside modal
body: <p>Is there a known reason why dropdown would not work inside a modal? I am using rails 4 and the dropdown works perfectly fine all over the app except for the modal. Here is how it is rendered
  <img src="https://i.stack.imgur.com/bAkvJ.png" alt="enter image description here"></p>
  
  <p>I suspect this might be an issue with javascript, I have tried changing the order of including javascripts in my application.js but nothing would work. Here is my application.js: </p>
  
  <pre><code>//= require bootstrap
  //= require jquery/jquery-2.1.1.js
  //= require jquery_ujs
  //= require turbolinks
  //= require cloudinary
  //= require jquery.turbolinks
  //= require slimscroll/jquery.slimscroll.min.js
  //= require bootstrap-sprockets
  </code></pre>
  
  <p>Has anyone ran into this before? is there a fix for this? I tried searching all over but couldn't find any relevant solution</p>
  
  <p>EDIT: The modal code</p>
  
  <pre><code>    &lt;div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
        `enter code here`&lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
            &lt;div class="modal-header"&gt;
              &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;/button&gt;
              &lt;h4 class="modal-title" id="myModalLabel"&gt;Add Group&lt;/h4&gt;
            &lt;/div&gt;
  
  
      &lt;div class="modal-body"&gt;
          &lt;div class="form-group"&gt;&lt;label&gt;Class name&lt;/label&gt; &lt;input type="name" placeholder="Choose a name for your group" class="form-control"&gt;&lt;/div&gt;
  
  &lt;div class="form-group"&gt;&lt;label&gt;Class name&lt;/label&gt; &lt;input type="desc" placeholder="Add a description for your group" class="form-control"&gt;&lt;/div&gt;
  
      &lt;div class="form-group"&gt;
                      &lt;label class="font-noraml"&gt;Select&lt;/label&gt;
                      &lt;div class="input-group"&gt;
                      &lt;select data-placeholder="Select a grade..." class="chosen-select" style="width:350px;" tabindex="2"&gt;
                      &lt;option value=""&gt;Select&lt;/option&gt;
                      &lt;option value="Prekindergarten"&gt;Prekindergarten&lt;/option&gt;
                      &lt;option value="Kindergarten"&gt;Kindergarten&lt;/option&gt;
                      &lt;option value="1st"&gt;1st&lt;/option&gt;
                      &lt;option value="2nd"&gt;2nd&lt;/option&gt;
                      &lt;option value="3rd"&gt;3rd&lt;/option&gt;
                      &lt;option value="4th"&gt;4th&lt;/option&gt;
                      &lt;option value="5th"&gt;5th&lt;/option&gt;
                      &lt;option value="6th"&gt;6th&lt;/option&gt;
                      &lt;option value="7th"&gt;7th&lt;/option&gt;
                      &lt;option value="8th"&gt;8th&lt;/option&gt;
                      &lt;option value="9th"&gt;9th&lt;/option&gt;
                      &lt;option value="10th"&gt;10th&lt;/option&gt;
                      &lt;option value="11th"&gt;11th&lt;/option&gt;
                      &lt;option value="12th"&gt;12th&lt;/option&gt;
                      &lt;option value="Higher Education"&gt;Higher Education&lt;/option&gt;
                      &lt;/select&gt;
                      &lt;/div&gt;
                      &lt;/div&gt;
         &lt;/div&gt;
  
            &lt;div class="modal-footer"&gt;
              &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
              &lt;button type="button" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>Thanks</p>