如何按选择中的任何角色进行搜索 [英] how to search by any character in Chosen

查看:73
本文介绍了如何按选择中的任何角色进行搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net页面有一个下拉框。

这里的例子



I have a drop down box in asp.net page.
here example

<link href="Scripts/chosen.css" rel="stylesheet" />
<script src="Scripts/chosen.jquery.js"></script>

       <script type="text/javascript">
           $(".chosen-select").chosen()
           search_contains = true;
           allow_single_deselect=true;
       </script>





dropdownbox代码:



dropdownbox code:

<asp:DropDownList ID="ddlNo" runat="server" CssClass="chosen-select" Width="100%" AutoPostBack="true" TabIndex="1" OnSelectedIndexChanged="ddlNo_SelectedIndexChanged">
</asp:DropDownList>





这只搜索单词。我需要搜索任何角色。请帮我解决这个问题。



this search by only word. I need to search by any character. Please help me to solve this.

推荐答案

(。selected-select)。selected()
search_contains = true;
allow_single_deselect = true;
< / script >
(".chosen-select").chosen() search_contains = true; allow_single_deselect=true; </script>





dropdownbox代码:



dropdownbox code:

<asp:DropDownList ID="ddlNo" runat="server" CssClass="chosen-select" Width="100%" AutoPostBack="true" TabIndex="1" OnSelectedIndexChanged="ddlNo_SelectedIndexChanged">
</asp:DropDownList>





这只搜索单词。我需要搜索任何角色。请帮我解决这个问题。



this search by only word. I need to search by any character. Please help me to solve this.


这篇关于如何按选择中的任何角色进行搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆