$.ajax({
type:"GET",
//url:"getPositionByOrgId.ht?orgId="+orgId+"&gcAreaNo="+gcAreaNo,
url:,
success:function(data) {//data为服务返回的数据,该数据后台为一个list
if(data) {
if(data.length==0){
alert("所选择的的组织没有配置岗位");
return false;
}
var html="";
for(var i=0;i<data.length;i++){
html+="<option value='"+data[i].posId+"'"+">"+data[i].posName+"</option>";
}
posSelect.removeAttr("disabled");
//posSelect.empty();
posSelect.append(html);
}else{
posSelect.attr("disabled","disabled");
}
}, error:function(data){
alert(data.responseText);//responseText为返回的错误页面
}
});
//常用遍历
parameter.children("option").each(function(){
var th=$(this);
if(th.attr("selected")=='selected'){
parameter.siblings("input[name='turnAfterPosition']").val(th.text());
}
});