我无法弄清楚下面的代码有什么问题。如果我输入任何字母,它不会向我显示下拉列表。如果有人能对此有所了解,我将非常感激。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Bootstrap typeahead example by 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>