Menu icon Foundation
Foundation Forms + AJAX = trigger delay?

I have a custom form with select elements that are loaded via AJAX. We're using the .trigger("change", true) event to update it the selects when someone clicks on it. Unfortunately, some of these selects have 100+ options in them which causes a delay in the loading. We get a blank section of the page where the real select element has been hidden and then the custom foundation stuff pops into place after 4 or so seconds. Is there any way to speed this up or is there a quicker way to deal with that trigger?

formsAJAXselectoptionsdelayloading

I have a custom form with select elements that are loaded via AJAX. We're using the .trigger("change", true) event to update it the selects when someone clicks on it. Unfortunately, some of these selects have 100+ options in them which causes a delay in the loading. We get a blank section of the page where the real select element has been hidden and then the custom foundation stuff pops into place after 4 or so seconds. Is there any way to speed this up or is there a quicker way to deal with that trigger?

Lyn about 5 years ago

Hey there,

Mind showing us what you are already doing javascript wise ?

Regards,

Lyn.