Typehead in bootstrap not working -
i can't figure out wrong in below code. it's not showing me dropdown if type alphabet. thankful if can throw light on this.
<!doctype html> <html> <head> <meta charset="utf-8" /> <title>bootstrap typeahead example w3resource</title> <link href="bootstrap.css" rel="stylesheet" type="text/css" /> <script src="jquery.js"></script> <script src="bootstrap-typeahead.js"></script> </head> <body> <div class="well"> <input type="text" class="span3" style="margin: 0 auto;" data-provide="typeahead" data-items="4" data-source="["ahmedabad","akola","asansol","aurangabad","bangaluru","baroda","belgaon","berhumpur","calicut","chennai","chapra","cherapunji"]"> </div> </body> </html>
try without quotes:
data-source=["ahmedabad","akola","asansol","aurangabad","bangaluru","baroda","belgaon","berhumpur","calicut","chennai","chapra","cherapunji"]
Comments
Post a Comment