function getCity1(){
// var pcode=$('#hjszs1 option:selected') .val();
var obj11= document.getElementById("hjszs1");
var city=document.getElementById("hj2") ;
var index = obj11.selectedIndex;
var pcode=obj11.options[index].value ;
$.ajax( {
type:'post' ,
url:'clfmmhtzt-getProCity' ,
dataType:'json',
data:{'pcode':pcode,'flag':1} ,
contentType: 'application/x-www-form-urlencoded;charset=utf-8' ,
success:function(msg){
var pcx=eval("("+msg.pcx+")") ;
for(var i=0; i<pcx.length; i++){
sr=sr+"<option value='"+pcx[i].itemcode+"'>"+pcx[i].itemname+"</option>" ;
}
alert(sr) ;
},
complete:function(msg){}
});
}
json数据的格式: sr="[{'itemname':'河北','itemcode':100},{'itemname':'张家口','itemcode':'51'}]" ;