这是我在这里找到的代码http://www.w3resource.com/twitter-bootstrap/typehead.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Bootstrap typehead example by w3resource</title>
<link href="http://www.w3resource.com/twitter-bootstrap/twitter-bootstrap-v2/docs/assets/css/bootstrap.css" rel="stylesheet" type="text/css" />
</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>
<script src="http://www.w3resource.com/twitter-bootstrap/twitter-bootstrap-v2/docs/assets/js/jquery.js"></script>
<script src="http://www.w3resource.com/twitter-bootstrap/twitter-bootstrap/twitter-bootstrap-v2/docs/assets/js/bootstrap-typeahead.js"></script>
</body>
</html>
它正在工作,但我想在其中添加一个小功能。我想在列表中创建一个始终显示在列表底部的链接。因此,如果您键入某些内容,如果将过滤列表,但底部的链接将始终显示。