`
desert3
  • 浏览: 2167165 次
  • 性别: Icon_minigender_1
  • 来自: 合肥
社区版块
存档分类
最新评论

大下拉框过滤 Filtering Large Select Lists(GPL开源协议)

 
阅读更多
Filtering Large Select Lists

<html><head>
<meta http-equiv="content-type" content="text/html; charset=GB2312">
<title>Filterlist Example</title>

<!-- Load the javascript code -->
<script type="text/javascript" src="example_files/filterlist.js"></script>

</head>
<body>
<h1>Filterlist Example</h1>

<form name="myform" action="">

<select name="myselect" size="5">
 <option>Keanu Reeves
 </option><option>Laurence Fishburne
 </option><option>汉字
 </option><option>汉语
 </option><option>Nona Gaye
 </option><option>Lachy Hulme
 </option><option>Nathaniel Lees
 </option><option>Harry J. Lennix
 </option><option>Matt McColm
 </option><option>Carrie-Anne Moss
 </option><option>Collin Chou
 </option><option>Genevieve O'Reilly
 </option><option>Harold Perrineau Jr.
 </option><option>Jada Pinkett Smith
 </option><option>Adrian Rayment
 </option><option>Neil Rayment
 </option><option>Bruce Spence
 </option><option>Hugo Weaving
 </option><option>Lambert Wilson
 </option><option>Anthony Wong
</option></select>

<script type="text/javascript">
<!--
var myfilter = new filterlist(document.myform.myselect);
//-->
</script>

<p>
Filter:
<a href="javascript:myfilter.reset()" title="Clear the filter">Clear</a>
<a href="javascript:myfilter.set('^A')" title="Show items starting with A">A</a>
<a href="javascript:myfilter.set('^B')" title="Show items starting with B">B</a>
<a href="javascript:myfilter.set('^C')" title="Show items starting with C">C</a>
<a href="javascript:myfilter.set('^D')" title="Show items starting with D">D</a>
<a href="javascript:myfilter.set('^E')" title="Show items starting with E">E</a>
<a href="javascript:myfilter.set('^F')" title="Show items starting with F">F</a>
<a href="javascript:myfilter.set('^G')" title="Show items starting with G">G</a>
<a href="javascript:myfilter.set('^H')" title="Show items starting with H">H</a>
<a href="javascript:myfilter.set('^I')" title="Show items starting with I">I</a>
<a href="javascript:myfilter.set('^J')" title="Show items starting with J">J</a>
<a href="javascript:myfilter.set('^K')" title="Show items starting with K">K</a>
<a href="javascript:myfilter.set('^L')" title="Show items starting with L">L</a>
<a href="javascript:myfilter.set('^M')" title="Show items starting with M">M</a>
<a href="javascript:myfilter.set('^N')" title="Show items starting with N">N</a>
<a href="javascript:myfilter.set('^O')" title="Show items starting with O">O</a>
<a href="javascript:myfilter.set('^P')" title="Show items starting with P">P</a>
<a href="javascript:myfilter.set('^Q')" title="Show items starting with Q">Q</a>
<a href="javascript:myfilter.set('^R')" title="Show items starting with R">R</a>
<a href="javascript:myfilter.set('^S')" title="Show items starting with S">S</a>
<a href="javascript:myfilter.set('^T')" title="Show items starting with T">T</a>
<a href="javascript:myfilter.set('^U')" title="Show items starting with U">U</a>
<a href="javascript:myfilter.set('^V')" title="Show items starting with V">V</a>
<a href="javascript:myfilter.set('^W')" title="Show items starting with W">W</a>
<a href="javascript:myfilter.set('^X')" title="Show items starting with X">X</a>
<a href="javascript:myfilter.set('^Y')" title="Show items starting with Y">Y</a>
<a href="javascript:myfilter.set('^Z')" title="Show items starting with Z">Z</a>

</p><p>

<!--
Note: if you have a very large select list,
you should deactivate the real-time filtering
on the INPUT field below - remove the onKeyUp attribute.
-->
Filter by regular expression:<br>
<input name="regexp" onkeyup="myfilter.set(this.value)">
<input onclick="myfilter.set(this.form.regexp.value)" value="Filter" type="button">
<input onclick="myfilter.reset();this.form.regexp.value=''" value="Clear" type="button">

<br>

<input name="toLowerCase" onclick="myfilter.set_ignore_case(!this.checked)" type="checkbox">
Case-sensitive

</p></form>



</body></html>
分享到:
评论

相关推荐

    下拉框带模糊查询引入select2组件.zip

    Select2是一款强大的jQuery插件,它提供了丰富的自定义选项和优化的用户体验,包括搜索过滤(模糊查询)、多选、分页等功能,极大地提升了下拉框的可用性。 标题"下拉框带模糊查询引入select2组件"指的是将Select2...

    layui-多选下拉框-xm-select-demo源码

    《layui-多选下拉框-xm-select:前端开发中的高效解决方案》 在现代Web开发中,用户界面的交互性和易用性是至关重要的。layui框架以其轻量级、高效和丰富的组件库,成为了众多开发者青睐的选择。尤其在构建多选...

    html多选下拉框 ,CheckBox的Select组件 可多选的下拉框

    多选下拉框的基本结构通常包括一个隐藏的`&lt;select&gt;`元素和一组可见的`&lt;label&gt;`与`&lt;input type="checkbox"&gt;`。每个`&lt;label&gt;`包裹一个`&lt;input&gt;`,并与其关联一个`&lt;option&gt;`,通过`for`属性链接`&lt;input&gt;`与`&lt;option&gt;`...

    bootstrap select树形下拉框

    要使用Bootstrap Select树形下拉框,首先确保已经引入了Bootstrap和Bootstrap Select的CSS和JavaScript文件。这些文件可以从Bootstrap官网或者CDN获取。同时,可能还需要引入一个专门处理树形结构的库,如jQuery ...

    一款非常好看下拉框样式(select)

    在网页设计中,美观的界面元素能够极大地提升用户体验。标题提到的“一款非常好看下拉框样式(select)”正是为了改善传统HTML `&lt;select&gt;` 元素的视觉效果。在这个项目中,开发者通过引入一个名为 `selectBox.htc` 的...

Global site tag (gtag.js) - Google Analytics