+----------------------+
Select your city: | Leiden |
| Leiderdorp |
| ... |
+----------------------+
<user selects a city>
+----------------------+
Select your city: | 16 |
+----------------------+
as you can see this is not very user friendly. For these situations you
want to have a value which is returned to the server, a label which is
shown in the input field for a selected item, and optionally a longer
info text which is shown in the suggestions menu. The Selectmenu widget
supports that model, but does not scale well when you have many possible
options.
In my application I always want to return an internal id instead of a
human-readable label to the backend, so the current autocomplete
approach does not work for me. I am considering to refactor it to
support value/label/info data for items. Most likely that will mean that
we need a new hidden input element to store the selected value, and
rename the original input or select element.
Before I embark on that mission I'ld like to hear some feedback from
other. Does thus sound like a sensible approach?
Wichert,
--
You received this message because you are subscribed to the Google Groups "jQuery UI Development" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to jquery-ui-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jquery-ui-dev?hl=en.