标签:call onchange style option img 分享 lse info cte
ajax请求传参:
var stat0,stat1;
if(data.data[i].STAT==0){
stat0 =‘selected=selected‘;
stat1 =‘‘;
}else{
stat1 =‘selected=selected‘;
stat0 =‘‘;
};
"<td>"+
"<select name=‘‘ autocomplete=‘off‘ id=‘states‘ style=‘border:none; outline:none;color: #00a09e;‘ onchange=‘ststeCall("+data.data[i].FACID+",0)‘>"+
"<option value=‘0‘ "+stat0+">有效</option>"+
"<option value=‘1‘ "+stat1+">无效</option>"+
"</select>"+
"</td>" +
//状态
function ststeCall(id,flg){
var num=$("#states option:selected").attr("value"); //0或1
}
标签:call onchange style option img 分享 lse info cte
原文地址:https://www.cnblogs.com/fanting/p/9414272.html