form-reset: (form reference) [every (time)] [after (time)][, (form reference)...];
form reference = Form that will be reset to its initial values. It accepts the following values:
- me, self, or this - the target selector, if the target selector is a form.
- form selector - Any CSS selector that references a form.
This command performs a reset on all form elements back to their initial state.
If there is more than one form selected, it will reset only the first one (currently). To do more than one form at once, use a comma to separate the form selectors.
If any fields have responded to the Active CSS "mimic" command, they will restore to their original state also, as in the example below.
Note: A regular HTML input tag of type "reset" will reset any mimic-into fields by default without any additional coding, so you don't have to use the form-reset command if you have a reset button already set up in your HTML.