search

Home  >  Q&A  >  body text

css - The requirement is input input, select automatically expands state, dynamic query is solved with ng-click, how to make input and select automatically expand?

I want to enter the input text box, and then all the contents in li or select will be displayed. I can select the value in the drop-down table, or I can automatically enter it in the input box. As shown in the picture. The requirement is input, and the queried select automatically expands. Dynamic query can be solved with ng-click. How to automatically expand input and select? Now I can only click the drop down to get it out.

阿神阿神2793 days ago692

reply all(3)I'll reply

  • 黄舟

    黄舟2017-05-15 17:13:51

    You can use select2

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-15 17:13:51

    js simulate click? select.click();

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-15 17:13:51

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

    reply
    0
  • Cancelreply