I have a dynamic text field value from angularjs post request. Based on the response text field will increase or decrease. I want to edit that value from multiple selected options field.
Html code given below.
<tr ng-repeat="opt in myData">
<td>
<input type="text" id="opt{{$index + 1}}" name="option{{$index + 1}}" ng-model="opt.options" ng-value="opt.options" />
</td>
</tr>
Multiple select options are here, based on the selection I want to change the text field value
Html code for first selection given below
<select ng-model="garden" multiple="multiple">
<option>Flowers</option>
<option>Shrubs</option>
<option>Trees</option>
<option>Bushes</option>
<option>Grass</option>
<option>Dirt</option>
</select>
Second Selection Html code given below
<select ng-model="country" multiple="multiple">
<option>USA</option>
<option>UK</option>
<option>USR</option>
</select>
Please any one help I'm new in Angularjs. Thanks for all
ng-repeat
relate to the drop-down lists. Which text field did you refer to and how should it be updated? – kubuntu 23 hours agong-change
directive toselect
and updatemyData
accordingly. – kubuntu 23 hours ago