2013-10-01 49 views

回答

2

沒有JavaScript不可能。如果使用JavaScript,您需要使用change事件,並查看該值是否與列表中最後一項相同,然後導航頁面。像這樣:

function onChangeOfDDl(e){ 
    if(...) { //you condition 
     window.location.href = "/editRecord/" + this.value() 
     // this.value() will give you the value for the selected item or the text if no underlying value exists 
    } 
} 
相關問題