Is there a way to map the data inside a map to tag?
I have a map Map
in my code.
Is there a way to map the option labels to the St
The items
attribute. You can do something like this:
LinkedHashMap states = new LinkedHashMap();
states.put(1, "Alabama");
states.put(2, "Alaska");
states.put(3, "Arizona");
states.put(4, "Arkansas");
states.put(5, "California");
And so on. Then in your form:
That will be rendered to something like: