jQueryUI autocomplete - when no results are returned

前端 未结 3 810
被撕碎了的回忆
被撕碎了的回忆 2021-02-19 11:19

I\'m wondering how one can catch and add a custom handler when empty results are returned from the server when using jQueryUI autocomplete.

There seem to be a few questio

3条回答
  •  暖寄归人
    2021-02-19 12:04

    Overwriting the response function of the autocompleter object might work, but that's monkeypatching. Using the response callback is most likely the cleanest way to achieve what you want.

提交回复
热议问题