触发获取动态数据的方法
获取动态数据list
清除select下面所有的选项
把获取的数据append到select下面
$('#id).change(function(){
var val = this.value;
document.getElementById("selectId").options.length = 0;
if(val != null && val != ''){
$.post(url, {"temp": val}, function(data){
if(data != null && data.length > 0){
for(var i=0; i
$("#selectId").append("");
}
}
$("#selectId").selectmenu('refresh', true);//jqm 是动态加载的css 所以新增元素后 需要手动加载样式
});
}
});