css - 需求是input的输入,select自动展开状态,动态查询用ng-click解决,如何做input和select自动展开呢?
阿神
阿神 2017-05-15 17:11:51
0
3
609

我想输入input文本框,然后li 或者select里面的内容全部展示出来,我可以选择下拉表里面的值,也可以自动在input框里面输入。如图。需求是input的输入,查询到的select自动展开状态,动态查询可以用ng-click解决,如何做input和select自动展开? 我现在只能点击下拉才能出来。

阿神
阿神

闭关修行中......

reply all(3)
黄舟

You can use select2

phpcn_u1582

js simulate click? select.click();

Peter_Zhu

If this requirement is a customized drop-down, use a custom method, and the style can also be adjusted to look good

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!