2010-04-19 94 views

回答

2

(對不起......我的編輯之前把.value的,而不是由事故8 .text區段 - )...)

this.options[this.selectedIndex].text 
0
//assuming "this" is the select element 
if (this.selectedIndex >= 0) { 
    this.options[this.selectedIndex].text = "some text"; 
} 
相關問題