for(i=0;i<templateId.options.length;i++) { if(templateId.options[i].selected) { templateId.options[i]=null;//付null即删除 } }