Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I dynamically change the choices in the choices Array. #62

Open
ShaheryarAbid opened this issue Feb 3, 2018 · 0 comments
Open

Comments

@ShaheryarAbid
Copy link

ShaheryarAbid commented Feb 3, 2018

Hi there,
I hope you shall be fine. I am using this autocomplete plugin for my project and is very helpful. Thank you for making it.
I am facing one issue though. I want to dynamically change the values in the choices array. How can I do that. If you look at the screenshots attached. I am using the autocomplete feature in the 2nd field. And the results in this field come on the basis of the choice selected in the first dropdown field. So I want to change the suggestions inside the 2nd field based on the value selected in the first dropdown field.
I am trying but I am unable to reset the choices array. Can you help me with that ?

I am using the method of searching in the local data. So I am setting "choices = choicesArray". The values in the choicesArray change dynamically but the choices array of your code remains the same. Kindly let me know of the solution.

Thanks,
Shaheryar Abid.
autocomplete

This was referenced Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant