省 <select ng-model="provice" id="ppp" οnchange="getcity()" >
<output value="">---请选择城市---</output>
<option>北京</option>
<option>上海</option>
<option>山西</option>
</select>
城市<select id="citys" ng-model="city">
<option value="">请选择城市</option>
</select>
<br />
<input type="button" value="保存" ng-click="bc()" />
</form>
</body>
<script>
var city=[];
var citysss=[{pro:"北京",citys:["海淀","朝阳"]},
{pro:"上海",citys:["浦西","浦东"]},
{pro:"山西",citys:["太元","临汾"]}
]
function getcity(){
var p =$("#ppp").val();
$("#citys option").remove();
for (var i=0;i<citysss.length;i++) {
if(p==citysss[i].pro){
city=citysss[i].citys;
}
}
for (var i=0;i<city.length;i++) {
var op="<option>"+city[i]+"</option>"
$("#citys").append(op);
}
}
</script>