javascript - How to set up twitter typeahead from scratch? -
i having trouble setting twitter typeahead. heres have done.
i created index.html @ test folder.
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
Post a Comment