Home > Article > Web Front-end > Why is the html reset button unresponsive?
Sometimes when we perform related registration operations on the website, we occasionally fill in the wrong information. At this time, we may need to reset the operation. Then the HTML reset button setting is very important. Everyone should know that setting the type attribute of the input element to "reset" can create a reset button. The value of the value attribute is the text displayed on the button. If no value attribute is provided, "Reset" is displayed on the button by default.
But sometimes we may encounter the situation where the html reset button does not respond. What is the situation?
It should be noted here:
1. Reset is a type of input, and input must be used together with form to be effective!
<form> <input type="text" value="" /> <input type="reset" value="重置按钮" /> </from>
2. The function of reset is to restore the initial value. After submission, the page is reloaded. The initial value is already the modified value. It does not mean that reset has no effect. After submission, modifying a few values and then reset will take effect.
So through the above introduction, has the problem that the html reset button has no effect been solved? I hope this article about the problem of HTML reset button not responding will be helpful to everyone.
The above is the detailed content of Why is the html reset button unresponsive?. For more information, please follow other related articles on the PHP Chinese website!