submit is not a function at button event 오류 시
onclick 이벤트 부분의 name 값에 submit 이라는 명을 넣었기 때문이다.
1 2 | <input type= "button" name= "submit" value= "Confirm" onclick= "button_event();" /> |
위 글에서 보면 name="submit" 이라는 부분 때문.
아래와 같이 바꿔 보자
1 2 | <input type= "button" name= "submit_send" value= "Confirm" onclick= "button_event();" /> |
해결!