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.
<p>This button here is outside the form tag.</p>
<buttonid="formResetButton">Reset form</button>
<hr>
<formid="mimicForm">
<p><inputid="mimicFormField1"class="mimicClass"data-ref="1"type="text"placeholder="Mimic to A"value="Cheryl"></p>
<p>A: <spanid="resultOfMimic1"></span></p>
<p><inputid="mimicFormField2"class="mimicClass"data-ref="2"type="text"placeholder="Mimic to B"></p>
<p>B: <spanid="resultOfMimic2"></span></p>
<p><inputid="mimicFormField3"class="mimicClass"data-ref="3"type="text"placeholder="Mimic to C"value="Bob"></p>
<p>C: <spanid="resultOfMimic3"></span></p>
<p><inputid="mimicFormField4"class="mimicClass"data-ref="4"type="text"placeholder="Mimic to D"></p>
<p>D: <spanid="resultOfMimic4"></span></p>
<p><inputid="mimicFormField5"class="mimicClass"data-ref="5"type="text"placeholder="Mimic to E"value="Dave"></p>
<p>E: <spanid="resultOfMimic5"></span></p>
<p>Browser page title: <inputid="mimicFormField6"type="text"value="mimic-into"placeholder="Type here"></p>
<inputtype="reset"value="Reset form">
</form>