var theday=document.getElementById("select标签的Id");


var theOption=document.createElement("option");//为select添加option
       theOption.innerHTML="页面显示";    //页面显示部分
       theOption.value=i;                //option的value部分
       theday.appendChild(theOption);


注意,要使得自动加载生成的option,必须要让页面先加载select标签部分