var options = document.getElementById('ppId').children;
$.each(options,function(){
if($(this).attr("brand-name")==rows[i].brandName){
$(this).attr("selected","selected");
return;
}
});
----------------------------------------------------------------------------
![前端页面
](https://img-blog.csdnimg.cn/20190817104446272.png)
jS笔记记录------js设置select标签选择
最新推荐文章于 2021-03-10 20:44:09 发布