Ajax select out of sync problem

Source: Internet
Author: User
There are two select when changing the option in the first select to request data from the server to load into SELECT2
This function is implemented but one bug is that the return data is too slow when you select the first select and then click SELECT2
Unable to synchronize usually wait a 1-2 seconds ask this question how to solve the novice one to ask God to help


Reply to discussion (solution)

The time taken to test the backend for the data

Need a back end every time? You can't put all the Select1->select2??? Into JSON? Like in the front?

If necessary? I beg the back end, can???? First select Change, clear the option of Select2, then use Ajax.

No, wait 1-2 seconds, it's slow.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.