-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 to redraw a form with an input control? #495
Comments
Can you post all of your code? I'm not totally following your question, but this will refresh the dropdown: selectize.refreshOptions(); |
@pgee70 Thank you so much for mentioning that the searchField is required and saving me those hours! @brianreavis If you could clarify in the documentation that searchField is required for ajax that would be very helpful. |
Hi Brian What I wanted to do in this instance was to enter in the numeric postal code, and select the suburb/state, store the unique id, and display the suburb and state after selection in the disabled fields. regards Pete
|
Hi i have information request relating to how to manage a form refresh, similar to #366 . I can get the ajax to read the data remotely, but unlike the example, I am using a text input tag to search for suburbs from postcodes.
e.g.
i have tried a number of strategies, using <input data-data="{json}" ... and also adding an option to the selectize after instantiation. eg
this re-draws the form with the correct value, but the autocomplete afterwards seems broken -- the autocomplete does not refresh.
Semantically i think it would be best to give the input tag a value="7000" on refresh. On focus (after redraw), the autocomplete would fire again. How can i do that?
The text was updated successfully, but these errors were encountered: