개발/JQuery & JavaScript
javascript "submit is not a function at button event" 오류
핫펍co
2018. 11. 15. 17:46
submit is not a function at button event 오류 시
onclick 이벤트 부분의 name 값에 submit 이라는 명을 넣었기 때문이다.
<input type="button" name="submit" value="Confirm" onclick="button_event();" />
위 글에서 보면 name="submit" 이라는 부분 때문.
아래와 같이 바꿔 보자
<input type="button" name="submit_send" value="Confirm" onclick="button_event();" />
해결!