jQuery: Submit a form only if no AJAX is currently running on the page

后端 未结 5 1306
野趣味
野趣味 2021-01-13 19:44

When the city input field is blurred I get somnething via an ajax request and set that as the value of a hidden field in the same form that the city field resides in.

<
5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-13 20:04

    What i could have done on this circumstances is to use plugin like block ui or disable the form submit button,the reason is you need to be interactive in your design,you may well able to lock the form submission,but its better to give a message or have a modal gray out

提交回复
热议问题