开发者

jQuery IU Autocomplete

开发者 https://www.devze.com 2023-01-17 08:36 出处:网络
I using jQuery-UI Autocomplete. When user types some text autocomplete send async request. But user not waiting response开发者_如何转开发 and moves to other input. How i can cancel request?You can can

I using jQuery-UI Autocomplete. When user types some text autocomplete send async request. But user not waiting response开发者_如何转开发 and moves to other input. How i can cancel request?


You can cancel an ajax request. Take a look at this:

Abort Ajax requests using jQuery

You should be able to bind a focusout event to your input that will kill the ajax request.

0

精彩评论

暂无评论...
验证码 换一张
取 消