Quick Jump ↵
data-mjf="clear_onclick" data-mjf_coc_form="FORM_ID" id="ELEMENT_ID"
<script type="text/javascript">$m.wand.clear_onclick = true;</script>
<body>
Text Field Will also work on type="password" and type="file"
type="password"
type="file"
Textarea Field Blue
Radio Buttons Option 1 Option 2 Option 3 Option 4
Checkboxes Option 1 Option 2 Option 3
Select Single Please choose... Option 1 Option 2 Option 3 This will set selectedIndex to -1
selectedIndex
-1
Select Multiple Option 1 Option 2 Option 3 This will set selectedIndex to -1
<input type="button" value="Clear" data-mjf="clear_onclick" data-mjf_coc_form="form_clear_onclick">
<input type="reset" value="Reset">
« Back to the main documentation