-
Notifications
You must be signed in to change notification settings - Fork 9
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
Issue initializing ajax loaded inputs #11
Comments
Is there a way that when you dynamically add the inputs that you can, at that time, bind the Address Autocomplete? |
@dericgw Yep that's what I'm doing. |
Do you have the code in Github somewhere where I can take a look at it? |
@dericcain Yep https://gist.github.com/Braunson/b1286c2d56e4e0509ea67d19b269cfb3 I'm sure there's room for improvement. The goal was to be able to initialize the autocomplete on any form element with say In my use-case I'm using it in a form, there is always a hidden field that get's filled with the default callback's json encoded response so when submitted, we parse that json data and save it without having to show the user anything but a nice formatted address in the field. I'm open to any suggestions or improvements but it seems when trying to run the plugin on a dynamically inserted input field, it doesn't work. Thoughts? |
I'm looking to initialize a second input that's ajax loaded on a page.
First the page loads with one input which get's initiated no problem.
Once the page is finished loading, it will make an Ajax call to include another input that should be initiated and says it is but it doesn't work as expected, nothing happens.
Ideas?
The text was updated successfully, but these errors were encountered: