Currently, I have a table with multiple columns and I am using Angular JS to display their values in various controls. For instance, I am using a Select/Option (multiple) to display column A, and I want to use another text box to display column B based on the selection made in the select/option control. Below is the code snippet:
Displaying Column A in Select (multiple):
<select multiple data-ng-model="selectedEmp" data-ng-options="o.emp for o in post.Emps" >
<option value="SampleValue">Samplevalue</option>
</select>
Displaying Column B in a text box:
<input data-ng-model="selectedEmp.gender" type="text" style="width:60px;"> </input>
The issue I am facing is that when the 'Multiple' attribute is not used in the select control, the gender value of the same record can be displayed in the text box. However, when 'multiple' is used, the text box does not show the selected current record.
I would appreciate any guidance on how to resolve this implementation challenge.
Thank you