[英]typeahead.js not working, no errors in console either
I can't understand why this isn't working. 我不明白为什么这不起作用。 There are no errors it just doesn't display my options.
没有错误,只是不显示我的选项。
<input id="hello" class="form-control" type="text">
<script src="~/lib/jquery/dist/jquery.js"></script>
<script src="~/lib/typeahead.js/dist/typeahead.bundle.js"></script>
var subjects = ['PHP', 'MySQL', 'SQL', 'PostgreSQL', 'HTML', 'CSS', 'HTML5', 'CSS3', 'JSON'];
$('#hello').typeahead({ source: subjects })
Example: https://jsfiddle.net/8naL335a/2/ 示例: https : //jsfiddle.net/8naL335a/2/
check the fiddle : 检查小提琴:
[https://jsfiddle.net/413dg2o2/][1]
I have made some changes in the html and javascript file.Please check the url https://twitter.github.io/typeahead.js/ for more details. 我对html和javascript文件进行了一些更改,请检查URL https://twitter.github.io/typeahead.js/以获取更多详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.