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

change url of existing autocomplete #21

Open
sennierer opened this issue Nov 15, 2016 · 2 comments
Open

change url of existing autocomplete #21

sennierer opened this issue Nov 15, 2016 · 2 comments

Comments

@sennierer
Copy link

Hi,

I am trying to change the url of one of my autocompletes on the fly in javascript. However using:
$('#input').yourlabsAutocomplete({'url': new_val})
does not update the url triggered. Do I somehow need to reinitialize the widget?

Thanks!

@balinabbb
Copy link

+1
When an another component of the form changes I want to call a different url. (The same actually, with an extended query string)

@jpic
Copy link
Member

jpic commented Jul 2, 2017

Makes sense, does select2 already support it ?

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

3 participants