다음 javascript 코드는 FF 및 Chrome에서 작동하지만 IE의 모든 버전에서 작동합니다. 내가 찾을 수있는 명백한 오류가없는 것 같습니다.자바 스크립트 IE 충돌
도움이 될 것입니다.
<script type="text/javascript">
// hide/expose search_by2 to/from dates
function hide_search_by2(that){
selected_value = that.options[that.selectedIndex].value;
if(selected_value == 'vehicles_sales.nodate'){
document.getElementById("search_by2_from_row").hidden=true;
document.getElementById("search_by2_to_row").hidden=true;
} else {
document.getElementById("search_by2_from_row").hidden=false;
document.getElementById("search_by2_to_row").hidden=false;
}
}
</script>
SELECTED_VALUE가 IE에 무엇을 포함 하는가? – m02ph3u5
안녕하세요, "vehicles_sales.nodate"가 반환되었습니다. –
# search_by2_from_row에 숨김이라는 속성이 있습니까? – m02ph3u5