I would like to know how to call the same screen only with the empty fields!
That is, the same screen only from the beginning, without the information that the user informed!
Example fields: Fields
I would like to know how to call the same screen only with the empty fields!
That is, the same screen only from the beginning, without the information that the user informed!
Example fields: Fields
With javascript use
var form = document.getElementById('form');
form.reset();
This will erase the values of the inputs fields, fields with default values will be retained. Another solution is to use an input reset on the form.
<input type="reset">
I use a function in javascrip where I pass the link on the page that is the form. ex:
function limpar(){
self.location = "./meusite.php?a=sda232";
}
I call the function through the onclick of the button