如何将响应值与下拉列表进行匹配

时间:2016-11-14 04:59:26

标签: angularjs

当用户选择国家/地区时,我会通过形成请求将该国家/地区值存储在后端数据库中。

在json回复中,我将所选国家/地区作为“国家/地区”,但我无法将该响应国家/地区值“国家/地区”与下拉列表进行比较(其中包含国家/地区

HTML:

<select name="country" class="drop3 countries" required  ng-model="model.country" placeholder="select" id="countryId sel1" ng-options="country for model.country in countries track by countryId">

我正在使用一个外部js,根据所选国家,根据所选国家和城市弹出所有国家和州。

外部js链接:<script src="http://iamrohit.in/lab/js/location.js"></script>

0 个答案:

没有答案