Code note/HTML
input, button / submit 제출 여부
코드노트
2022. 11. 3. 19:14
input, button type에 따라서 form제출이 정해진다.
input, button 제출 여부
<input type="submit"> // 제출
<input type="button"> // 제출 안됨
<button type="submit"></button> // 제출
<button></button> // 제출
<button type="button"></button> // 제출 안됨
- input, button태그에 상관없이 type이 button이면 제출이 되지 않는다.