JSFiddle - React, Tailwind, and code Playground

HTML

<table>	
    <tr><input type="button" value="clear" onclick="toggleBankCount();" />
    </tr>
    <tr>
		<td>Closing Agent Bank Street Address:</td>
        <td><input type="text" value="1" name="loanXclosingStreet" id="2ndBankFields" /></td>
	</tr> 
	<tr>
		<td>Closing Agent Bank City:</td>
        <td><input type="text" value="2" name="loanXclosingCity" id="2ndBankFields" /></td>
	</tr>
</table>

JavaScript

function toggleBankCount() {
      secBankFields = document.getElementById('2ndBankFields');
      secBankFields.value = '';
  }