input:reset

Support

Creates a reset button. Clicking on a reset button resets all controls within the form to their initial values.

You can modify the label of the reset button with the value attribute. See the example for details.

Example

<form method="post" action="">
Username: <input type="text" name="userName" />
<br />
Password: <input type="password" name="password" />
<br /><br />
<input type="reset" value="Reset to initial state" />
<br />
<input type="submit" value="Sign in" />
</form>

Preview

Username:
Password: