You can do something similar to this in JS and call it from onclick within your button:
function submit() {
$('#fieldIdOne').val('');
$('#fieldIdTwo').val('');
}
And then in your HTML file:
If you happen to use this solution with Firebase, it actually won't send anything to the database unless you add return false right after the call.