I have a select menu that retrieves its list from REST.
Is it possible to group the response like in the below image?
The webservice returns data like:
precode
<DESTINATION><CODE>60</CODE><REGION>Bermuda</REGION><NAME>Bermuda</NAME></DESTINATION>
<DESTINATION><CODE>70</CODE><REGION>Costa Rica</REGION><NAME>Liberia</NAME></DESTINATION>
<DESTINATION><CODE>64</CODE><REGION>Costa Rica</REGION><NAME>Puntarenas</NAME></DESTINATION>
<DESTINATION><CODE>92</CODE><REGION>Cuba</REGION><NAME>Cayo Coco</NAME></DESTINATION>
<DESTINATION><CODE>6</CODE><REGION>Cuba</REGION><NAME>Holguin</NAME></DESTINATION>
/code/pre