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

destination of value? #37

Open
i-make-robots opened this issue Jun 27, 2014 · 1 comment
Open

destination of value? #37

i-make-robots opened this issue Jun 27, 2014 · 1 comment

Comments

@i-make-robots
Copy link

When you make a selection the item is added to the input box. Also there is a hidden input field generated for each AutoSuggest box that stores the values (comma separated) of each item you have selected. This input box will have a unique ID as well as a class name of "as-values".

Firefox, latest edition.
I used autosuggest on a field called "f1" in a form. eg: $("#f1").autoSuggest( blah blah blah );
Comma separated values go into the "as_values_*" field. Leading comma? Wierd.
on form submit input "f1" is empty.

When you make a selection the item is added to the input box.

What am I doing wrong?

@i-make-robots
Copy link
Author

It seems the library uses the original field as a temporary storage for the search data, but once the selection has been made the original field is used for the NEXT search field.

If, instead, the original field were hidden and a temporary field was used to hold the search data then both needs could be met. Would this be possible?

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