I would like to reset the form after checkboxes in the first fieldset are deselected after initial selection.
How can one accomplish this using vanilla JavaScript?
<form>
<fieldset>
<label><input type="checkbox" name="foo">Apples</label>
<label><input type="checkbox" name="foo">Oranges</label>
</fieldset>
<fieldset>
<label><input type="radio" name="bar">Red</label>
<label><input type="radio" name="bar">Blue</label>
</fieldset>
</form>