//将传过来的值与现有的值进行比较
    function selector(id, selectvalue){
   
        for(var i=0; i<$("#"+id).children().length; i++) {
        
            if($("#"+id).children().eq(i).val().trim().toLowerCase()==selectvalue.toLowerCase()){
           
                $("#"+id).children().eq(i).attr({selected:true});
            }

        }
    }

相关文章:

  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
猜你喜欢
  • 2021-11-21
  • 2021-07-02
  • 2021-12-23
相关资源
相似解决方案