ECMA/웹 프론트엔드
폼 태그 제출 Form Tag Submit 복붙
찬스님
2020. 11. 21. 16:15
300x250
+ action ( url ) 은
script로 입력 or <form> 태그 attribute 'action'에 입력
<!-- If tag is '<input>'-->
<form name="regForm" id="regForm" method="post">
<input type="text" name="name" placeholder="이름">
<input type="button" onclick="invalid()"> value="저장">
</form>
<!-- If tag is '<button>'-->
<form name="regForm" id="regForm" method="post">
<input type="text" name="name" placeholder="이름">
<button type="button" onclick="invalid()">저장</button>
</form>
반응형