【发布时间】:2010-09-16 19:30:45
【问题描述】:
我正在尝试使用这个插件,它将选择列表变成一个组合框,用户可以在其中输入他们的选择,除了选择列表功能。
http://vladimir-k.blogspot.com/2009/02/sexy-combo-jquery-plugin.html
The issue I'm having, is when the select list is inside of a jquery dialog, it no longer has the drop down functionality.如果您点击选项卡或输入已知值的前几个字母,自动完成功能仍然有效,但不会出现充满选项的框。有没有其他人遇到过这个?是否有已知的解决方案/解决方法?
来自 site.master
<link href="<%= Url.Content("~/Content/sexy-combo.css") %>" rel="stylesheet" type="text/css" />
<link href="<%= Url.Content("~/Content/sexy/sexy.css") %>" rel="stylesheet" type="text/css" />
<link href="<%= Url.Content("~/Content/custom/custom.css") %>" rel="stylesheet" type="text/css" />
<script src="<%= Url.Content("~/Scripts/jquery.sexy-combo.min.js") %>" type="text/javascript"></script>
<script src="<%= Url.Content("~/Scripts/jquery.bgiframe.min.js") %>" type="text/javascript"></script>
来自 EditProduct.ascx(加载到对话框中)
<script type="text/javascript">
$('#subCategories').sexyCombo();
</script>
<%: Html.DropDownList("CategoryId", new SelectList(Model.ProductCategories, "CategoryId", "CategoryName", Model.Product.CategoryId), new{ id="subCategories"}) %>
【问题讨论】:
标签: jquery asp.net-mvc combobox dialog