要使用搜索(过滤器)下拉代替Html选择
问题描述:
<html:select property="batchfilename"
onchange="setvalue('batchfilename',$(this).val());submitpage();">
<html:options name="statistics.batchfilename" />
</html:select>
想要使用搜索(过滤器)下拉代替html:select标签。 在此先感谢要使用搜索(过滤器)下拉代替Html选择
答
我建议你看看这个link。如果您向下滚动到“Live Search”部分,请尝试该示例。这个下拉列表为您提供了实时搜索列表的功能,非常可靠,我在私人项目中使用了它。
为了使其工作,您只需插入所需的库,该库也可以在该页面找到。如果您认为这有助于您,请将此标记为答案。
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t HTML:选择> –请解释更多 –
我想你想要一些像这样http://www.lessanvaezi.com/filter-select-list-options/或http://phppot.com/demo/dropdown-with-search-using-jquery/ –