Trouble Using Javascript To Initialize Bootstrap Typeahead
I have a simple Bootstrap typeahead that looks like this: 
 
Solution 1:
Surround your code with $(document).ready(); its attempting to load before the DOM is ready.
$(document).ready(function(){
   var options = {
    items: 3,
    source: ["AL", "AK", "AZ", "AR", "CA", "CO", "CT"]
   };
   $("#wSearch").typeahead(options);
});
Post a Comment for "Trouble Using Javascript To Initialize Bootstrap Typeahead"