JSFiddle - React, Tailwind, and code Playground

by serio

HTML

<div id=form>
  <form>
    <input type=text id=first />
    <input type=text id=first />
    <input type=submit id=submit /> <a href=#>reset</a>
  </form>
</div>

CSS

input, a { display: block; margin: 10px 0; padding: 3px 4px; }
#form { padding: 20px; }

JavaScript

$(function () {
	var form = $( '#form form' );
    form.find('a').click(function() {
       $( '#form form' )[0].reset(); 
    });
});