HTML button reset Clear form button



You must often see such applications, such as filling in a member registration form or order form, there will be a clear and refill button (HTML button), of course, such a button is used to quickly clear the form data, which is convenient for netizens to fill in again. Designed, such a button only needs to be reset in the HTML.


Grammar example
<form>
 <input type="text">
 <input type="reset" value="Clear form">
</form>


Present results



Example description: We used two <input> tags in the form <form>, namely text and reset. Text is a text block used to input text. Reset is the focus of this article. Clear form data. In the presentation result of the example, the text you entered, as long as you press the clear form, it will be cleared immediately!

Post a Comment

0 Comments