I am using the following code in my website. Everything is working fine but whenever I select a value in the first select, the second select always returns selected value as A, even if I select B in the second select. Could anyone tell me what the problem is.
<span ng-show="a.Action">Called</span><select name="First" form="{{a.ID}}" ng-model="Calling" ng-show="!a.Action">
<option value="">Not Called</option><option value="C">Called</option>
</select>
</td>
<td colspan="1">
<select name="Second" form="{{a.ID}}" ng-disabled="Calling==C" ng-show="!a.Action">
<option value="A" ng-selected="a.Disposition == 'A'">A</option>
<option value="B" ng-selected="a.Disposition == 'B'">B</option>
</select>
<select name="Second" form="{{a.ID}}" ng-show="a.Action">
<option value="A" ng-selected="a.Disposition == 'A'">A</option>
<option value="B" selected="selected" ng-selected="a.Disposition == 'B'">B</option>
</select>
That is my angular code in the html file. The form is submitted to a php file, where the value of $_POST[Second] is always A whenever value in a.Disposition is A/blank and always B if value in a.Disposition is B when the page loads. I change the default selected value in the Second select box. Yet that value does not get passed. However, after the First select statement is removed, i.e, when a value exists in a.Action then the Second select statement works fine. Could anyone tell me why that is happening and how do I circumvent this problem?