当我想要更新数据时,不会填充下拉列表 [英] Dropdownlist is not populated when I want to update the data
问题描述
这是我的下拉列表代码:
< div class = form-group col-md-4 >
< span > VISA类型* < / span >
< 选择 名称 = visa class = js-example-tokenizer js-states form-control data- ng-model = Candidate.VisaType ng-class = 已提交? 'ng-dirty':'' 必需 自动对焦 >
< 选项 value = > - 选择VISA类型 - < / option >
< option value = 1 > H1 B < / option >
< 选项 value = 2 > 绿卡< / option >
< 选项 值 = 3 > Citizen < / option >
< / select >
< span class = 错误 ng-show = (f1.visa。$ dirty ||提交)&& f1.visa。$ error.required > 需要技能组合!< < span class =code-leadattribute> / span >
< ; / div >
当我点击编辑按钮时,除了这个下拉列表外,所有文本字段都将自动填充。
我在数据库中的int中使用此值。
我正在使用angularjs作为前端。后端使用c#web api。
请给我解决方案。
谢谢。
脏||已提交)&& f1.visa。
error.required > 需要技能组合!< / span >
< / div < span class =code-keyword>>
当我点击编辑按钮时,除了此下拉列表外,所有文本字段都将自动填充。
我在数据库中的int中使用此值。
我正在使用angularjs作为前端。后端使用c#web api。
请给我解决方案。
谢谢。
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.
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.
这篇关于当我想要更新数据时,不会填充下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!