• 1.5k
  • 546
  • 170.4k

Dropdownlist is not populated when I want to update the data

Dec 5 2015 9:32 AM
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>


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

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)