0
$(lblName).innerText = $(ddlNameList).options[$(ddlNameList).selectedIndex].text;
是否有知道爲什麼上面的代碼行工作在Chrome,但在Internet Explorer 11,出現以下錯誤的JavaScript運行時錯誤:無法獲取的未定義或爲空引用屬性「選項」
JavaScript runtime error: Unable to get property 'options' of undefined or null reference
'選項'不是'jQuery'對象的屬性(這是'$(ddlNameList)'是)。 –