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>

 

반응형

+ Recent posts