I do it with
JSP and I checked generated code in browser seems <SELECT> has right values like:
<select name=xtag><option value=X02 02 >X02 02 </option><option value=D0 01>D0 01 </option>
But when I do formname.xtag.value it only returns X02 etc I was expecting to see full value: X02 02.
Is there a way I can get descriptions like Component_1 etc below in Javascript with dot notation. That will solve my problem.
<SELECT multiple size="4" name="component-select">
<OPTION selected value="Component_1_a">Component_1</OPTION>
<OPTION selected value="Component_1_b">Component_2</OPTION>
<OPTION>Component_3</OPTION>
<OPTION>Component_4</OPTION>
<OPTION>Component_5</OPTION>
<OPTION>Component_6</OPTION>
<OPTION>Component_7</OPTION>
</SELECT>
Thanks