<input type= "reset"/> Reset button Brief Introduction

Source: Internet
Author: User

<input type= "reset"/> Reset button briefly describes:

In the form registration or login code, the reset button appears very high frequency, in the usual impression, click the Reset button can tell the value of the form element is set to empty, I think this is a lot of beginners to this button's initial impression, but the actual nature is so difficult to say.

Let's look at a code example:

<!DOCTYPE HTML><HTML><Head><MetaCharSet= "Utf-8"><Metaname= "Author"content= "http://www.51texiao.cn/" /><title>Ant Tribe</title></Head> <Body><form><ul>  <Li>Name:<inputtype= "text"/></Li>  <Li>Password:<inputtype= "Password"/></Li>  <Li>Hobby:<inputtype= "checkbox"/>Man<inputtype= "checkbox"checked/>Woman</Li>  <Li><inputtype= "Reset"value= "Reset"/><inputtype= "Submit"value= "Submit"></Li></ul></form></Body> </HTML>

In the above code, block in the text box after the input, if you click the Reset button, then the contents of the text box will be emptied, but in fact, it is not the case, the reset button means reset, that is, the relevant property values of the form element is set to the default state, if the default value of the text box is "Ant Tribe" After you manually modify the value of the text box, click the Reset button, and the value of the text box reverts to the Ant tribe.

The original address is: http://www.51texiao.cn/HTML5jiaocheng/2015/0612/4010.html

<input type= "reset"/> Reset button Brief Introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.