JSFiddle - React, Tailwind, and code Playground
HTML
<form id="frm1">
<input type="text" id="txt">
<input type="reset" value="Reset" id="rst">
</form>
JavaScript
$('input[type="reset"]').click(function() {
$(this).closest('form').get(0).reset();
// At this point your form's inputs should have their values reset
// Return false to prevent the reset button from firing the form's reset event again
alert('Is the input empty now? ' + ($('#txt').val().length == 0));
return false;
});