Reset
suggest change<input type="reset" value="Reset">
An input of type reset creates a button which, when clicked, resets all inputs in the form it is contained in to their default state.
- Text in an input field will be reset to blank or its default value (specified using the
valueattribute). - A selection menu returns to the options that were initially selected. If none had the
selectedattribute, a single-select menu returns to selecting the first option. - All checkboxes and radio buttons return to their initial state: checked only if they have the
checkedattribute.
Note: A reset button must be inside or attached to (via the form attribute) a <form> element in order to have any effect. The button will only reset the elements within this form.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents