300x250
아래 코드와 같이 form 태그 안에 button 태그들은 클릭 시 제출을 한다.
<form>
...
<button> 확인</button>
...
</form>
이것을 막기 위해
button 태그 attribute type="button"을 추가한다.
<form>
...
<button type="button"> 확인</button>
...
</form>
이유는 추후 업뎃
반응형
'Web Frontend > 프론트엔드 스크립팅 복붙' 카테고리의 다른 글
<input type="number" maxLength Attribute not working (0) | 2020.11.22 |
---|---|
JS div 태그 사이에 값 가져오기, 변경하기<div></div> (0) | 2020.11.22 |