javascript - How to set up twitter typeahead from scratch? -


i having trouble setting twitter typeahead. heres have done.

  1. i created index.html @ test folder.

  2. i saved typeahead typeahead.js inside folder js.

but still not working. here code index.html

<body>   <div>         <input id="product_search" type="text" data-provide="typeahead"           data-source='["deluxe bicycle", "super deluxe trampoline", "super duper scooter"]'>    </div> <script src="js/typeahead.js"></script> </body> 

and here full code.

(typeahead) not supported in bootstrap version (3.3.4) supported in version (2.3.2). try following:

<head> <script src="http://code.jquery.com/jquery-1.11.3.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/2.3.2/js/bootstrap.min.js"></script> <script src="js/typeahead.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css"></script> </head> 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -