根据输出设置select的被选中值

$("#startupStatus").find("option").map(function(i) { 
      if ($('#st-status').val() == $(this).val()){
               $(this).attr("selected", true);  
             }
      });

  

posted @ 2014-12-11 21:20  goodbyepeterpan  阅读(160)  评论(0编辑  收藏  举报