2012年3月27日 星期二

javascript select new Option 用法

var myselect=document.getElementById("channels");
myselect.options[myselect.length] = new Option("123", "1", "", (channel==36)?1:0);


new Option("標題","value",沒用""即可,selected)

沒有留言:

張貼留言