문제

I can't find my error. I looked at the other topics but no luck.

<div>
    <input id="date1" name="date1" type="date"> 
    <input id="date2" name="date2" type="date" onchange="date()">   
    <input id="date_diference" name="date_diference" type="date">

    <script type="text/javascript">
    function date(){
        document.alert("hope to work");
    }
    </script>
</div>
도움이 되었습니까?

해결책

this won't work:

document.alert("hope to work");

this will

alert("hope to work");
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top