How to set at least two characters in jQuery UI autocomplete?

前端 未结 3 1429
醉话见心
醉话见心 2021-02-20 15:49

I am using jQuery autocomplete and would like to limit the showing results only when the user types at least 2 characters. How to do that?

3条回答
  •  无人共我
    2021-02-20 16:35

    There is no minLength attribute. The attribute you are searching for is minChars.

    see https://github.com/devbridge/jQuery-Autocomplete

提交回复
热议问题