js set text field empty code example
Example: javascript how to set a textbox value to nothing
<input id="text">
<button onclick="myFunction()">Run</button>
<script>
function myFunction() {
document.getElementById("text").value = "";
}
</script>