Autocomplete disallow free text entry?

前端 未结 7 1261
忘了有多久
忘了有多久 2020-12-02 15:27

Is it possible to disallow free text entry in the JQuery UI autocomplete widget?

eg I only want the user to be allowed to select from the list of items that are pre

7条回答
  •  失恋的感觉
    2020-12-02 16:01

    If you want the user to just get the item from the list then use autocomplete combobox.

    http://jqueryui.com/demos/autocomplete/#combobox

    HTH

提交回复
热议问题