【问题标题】:JQuery AutoComplete Combobox "Show All items" haven't been created尚未创建 JQuery 自动完成组合框“显示所有项目”
【发布时间】:2016-02-06 07:03:45
【问题描述】:
Heloo 我在我的 MVC 项目中使用 Jquery autocompete https://jqueryui.com/autocomplete/#combobox。我用它来做我的
@Html.DropDownList("examdrp", ViewBag.ExamBag as SelectList, "", new { @id = "combobox" }
一切正常数据加载,但我缺少“显示所有项目”按钮
我尝试做所有相同的事情,但没有 LAYOUT.cshtml 并且它有效,但我的页面上需要 LAYOUT.cshtml!
【问题讨论】:
标签:
c#
jquery
asp.net-mvc
jquery-ui
autocomplete
【解决方案1】:
好的,我们可以关闭这个帖子了!!我自己做了。如果您遇到类似的问题,您必须仅在 botstrap 捆绑后放置 jquery 文件
@Scripts.Render("~/bundles/bootstrap")
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="~/Scripts/jquery-1.10.2.js"></script>
<script src="~/Scripts/jquery-ui-1.11.4.min.js"></script>
<script src="~/Scripts/jquery-ui-1.11.4.js"></script>