a simple idea to make clear button with javascript code example
Example: how to make a clear button in javascript
<script>
function clear_inputs(){
inputs=document.getElementsByClassName('inputs')
for(input of inputs){
input.value=' ' ///this emptys the inputs
}
}
</script>
<input class='inputs' type="text">
<input class='inputs' type="text">
<input class='inputs' type="text">
<button onclick='clear_inputs()'>Clear</button>