Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<label for="">Address Line1</label>
<select class="ui-select" ng-model="addrLine1"
name="AddressLine1"
ng-options="fm as fm.fieldName for fm in datasource.fieldMappings track by fm.id "
ng-change="transformationTypeSelected($index,addrLine1,1)">
<option value="">--Select--</option>
</select>




<label for=""> Address Line2 </label>
<select class="ui-select" ng-model="addrLine2"
name="AddressLine2"
ng-options="fm as fm.fieldName for fm in datasource.fieldMappings track by fm.id "
ng-change="transformationTypeSelected($index,addrLine2,1)">
<option value="">--Select--</option>
</select>
Posted
Updated 12-Jan-15 19:15pm
v2
Comments
ZurdoDev 12-Jan-15 8:44am    
Haven't you asked this before? Where are you stuck?
Member 11368721 13-Jan-15 1:17am    
Hi @RyanDev. i dont have any idea of how to do this. Can you plz send me an example.

1 solution

Through JQuery you can achieve this.
First Store the selected value in a variable on change event of DropDown

JavaScript
var selectedValue = $("#idofDropDown").val()


then remove that value from other drop down

JavaScript
$("#idOfanotherDDL").remove(selectedValue)



May be this will help you.
 
Share this answer
 
Comments
Member 11368721 13-Jan-15 4:56am    
Thanks for the answer.Can you please give me any way to do this using angularjs.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900