我使用外部js文件将所有国家/地区,州和城市显示为列表。
如果我选择任何国家,我可以分别选择该国家的州。
但是当我尝试通过从响应中获取国家/地区值来显示国家/地区时,我获得了空值。在控制台中,我看到了下面的代码。
<option value="? string:India ?"></option>
我不知道为什么我的响应值与外部js文件不匹配。
Is there any APK to display all countries, states and cities as dropdown in Angularjs?
<div class="form-group1 col-sm-4">
<select name="country" class="drop3 countries" required ng-model="model.country" placeholder="select" id="countryId sel11"><option value='' disabled selected>Country</option>
<!--<option ng-repeat="item in country track by $index" value="{{item}}">{{item}}</option>-->
</select>
</div>
<div class="form-group1 col-sm-4">
<select name="state" class="drop3 states" required ng-model="model.state" placeholder="select" id="sel21 stateId"><option value='' disabled selected>State</option>
<!--<option ng-repeat="item in state track by $index" value="{{item}}">{{item}}</option>-->
</select>
</div>
<div class="form-group1 col-sm-4">
<select name="city" class="drop3 cities" required ng-model="model.city" placeholder="City" id="sel31 cityId">
<option value='' disabled selected>City</option>
<!--<option ng-repeat="item in city track by $index" value="{{item}}">{{item}}</option>-->
</select>
</div>