Sivakumar

Sivakumar

  • NA
  • 551
  • 218.5k

Dropdownlist is not populated when I want to update the data

Dec 5 2015 9:32 AM
Hi,
 
 
This is my dropdownlist code :
 
<div class="form-group col-md-4">
<span>VISA type *</span>
<select name="visa" class="js-example-tokenizer js-states form-control" data-ng-model="Candidate.VisaType" ng-class="submitted?'ng-dirty':''" required autofocus>
<option value="">-- Select VISA type --</option>
<option value="1">H1 B</option>
<option value="2">Green Card</option>
<option value="3">Citizen</option>

</select>

<span class="error" ng-show="(f1.visa.$dirty || submitted) && f1.visa.$error.required">Skill Sets required!</span>

</div> 
 
 
When i click edit button all text fields will be auto populated except this dropdown.
 
I am using this value in  int in database .
 
I am using angularjs for front end. backend using c# web api .
 
Please give me solution for that.
 
Thank you.
 

Answers (2)