jQuery操作select
给select的option 追加值
$("#mySelect).append("<option value='"+i+"'>"+ j+ "</option>");																										
移除所有的option
$("#mySelect").find("option").remove();																										
当选中状态改变时触发事件
$("#mySelect").change(function(){});																																
设置指定的值选中
//设置text选中
var dep = "option:contains(" + stuMsg[8] + ")";
$("#mySelect").find(dep).attr("selected", true);																																
//设置value选中
$("#mySelect").val("2");
//当设置指定的值选中后 并不会触发change事件 如果有需要可以加上
$("#mySelect").trigger("change");
 
                    
                
 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号