title: Bootstrap dropdown on keyup
body: <p>I have a working dropdown that gets shown on click of a text box but would like it to always show on keyup. I have the keyup function working, but you still need to click after typing to cause the drop down to show.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>        //This calls the delay function and will result in the customerNameUL_Populate function being called after the delay has passed.
          function customerNameSearchTextbox_keyup() {
              
              delay(function () {
                  if ($('#customerNameSearchTextbox').val().length &gt; 0) {
                      customerNameUL_Populate();
                      alert('dropdown');   //http://getbootstrap.com/javascript/#dropdowns
                      $('#customerNameSearchTextbox').dropdown(); &lt;----- ?
                  }
              else {
                      $('#customerNameUL').empty();
                  };
              }, 500);
          };
  
      //This function gets called to populate the list of customers for search
          function customerNameUL_Populate() {
  
            &lt;working stuff&gt;
              
          };</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>        &lt;div class="dropdown"&gt;
              &lt;input type="text" id="customerNameSearchTextbox" class="form-control" placeholder="Customer" aria-describedby="basic-addon1" data-toggle="dropdown" onkeyup="customerNameSearchTextbox_keyup();" autocomplete="off"&gt;
              &lt;ul class="dropdown-menu" aria-labelledby="dropdownMenu1" id="customerNameUL"&gt;
              &lt;/ul&gt;
          &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The confusion I think I have is with what events to call, or what classes to assign, or what events to call. The alert above goes off showing I get where I want to be, just need to replace the line below to cause the customerNameUL to display.</p>