JSFiddle - React, Tailwind, and code Playground
HTML
<form action="/Card/SetMerchant" class="inline" data-ajax="true" data-ajax-complete="completeAjax" id="setmerchantform" method="post"><input id="merchantid" name="merchantid" type="hidden" value="" />
<label for="merchantname">Merchant Name:</label>
<input class="text" id="merchantname" name="merchantname" type="text" value="" />
<input type="submit" value="Submit" />
<a id="editmerchantname" class="editbutton small ui-corner-all">Edit</a>
</form>
JavaScript
$(':input:not(:button)').val("");