How do you set a default value with jquery auto complete combobox?

后端 未结 14 1935
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-28 19:01

When using the jquery ui autocomplete combobox, can you set a default value for the combobox?

14条回答
  •  旧巷少年郎
    2020-12-28 19:22

    Call the option method to set the box's value after you've initialized it.

    $('#combo').autocomplete( "option" , optionName , [value] )
    

提交回复
热议问题