HTML code, that may not be correct:
<div ng-app="myApp" ng=controller="myCtrl">
States : <select id="source" name="source">
<option>{{state.name}}</option>
</select>
Districts: <select id="status" name="status">
<option>{{district.name}}</option>
</select>
Let say JSON content is as below:
State name: s1, s2, s3, s4...and so on. District name in state s1 are: d1a,d1b,d1c,d1d...and so on
District name in state s2 are: d2a,d2b,d2c,d2d...and so on
District name in state s are: d3a,d3b,d3c,d3d...and so on ...like this.
I want that when user click on the states drop-down then the other drop-down should show the corresponding districts name.